LEFT | RIGHT |
1 // run|run - | 1 // runoutput |
2 | 2 |
3 // Copyright 2009 The Go Authors. All rights reserved. | 3 // Copyright 2009 The Go Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
5 // license that can be found in the LICENSE file. | 5 // license that can be found in the LICENSE file. |
6 | 6 |
7 // Generate test of 64-bit arithmetic. | 7 // Generate test of 64-bit arithmetic. |
8 // Most synthesized routines have different cases for | 8 // Most synthesized routines have different cases for |
9 // constants vs variables and even the generated code has | 9 // constants vs variables and even the generated code has |
10 // different cases for large and small constants, | 10 // different cases for large and small constants, |
11 // so try a good range of inputs. | 11 // so try a good range of inputs. |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 constTests() | 698 constTests() |
699 | 699 |
700 fmt.Fprintf(bout, "func main() {\n") | 700 fmt.Fprintf(bout, "func main() {\n") |
701 for i := 0; i < ntest; i++ { | 701 for i := 0; i < ntest; i++ { |
702 fmt.Fprintf(bout, "\ttest%v();\n", i) | 702 fmt.Fprintf(bout, "\ttest%v();\n", i) |
703 } | 703 } |
704 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n") | 704 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n") |
705 fmt.Fprintf(bout, "}\n") | 705 fmt.Fprintf(bout, "}\n") |
706 bout.Flush() | 706 bout.Flush() |
707 } | 707 } |
LEFT | RIGHT |