LEFT | RIGHT |
(Both sides are equal) |
1 // runoutput | 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, |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 constTests() | 719 constTests() |
720 | 720 |
721 fmt.Fprintf(bout, "func main() {\n") | 721 fmt.Fprintf(bout, "func main() {\n") |
722 for i := 0; i < ntest; i++ { | 722 for i := 0; i < ntest; i++ { |
723 fmt.Fprintf(bout, "\ttest%v();\n", i) | 723 fmt.Fprintf(bout, "\ttest%v();\n", i) |
724 } | 724 } |
725 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n") | 725 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n") |
726 fmt.Fprintf(bout, "}\n") | 726 fmt.Fprintf(bout, "}\n") |
727 bout.Flush() | 727 bout.Flush() |
728 } | 728 } |
LEFT | RIGHT |