LEFT | RIGHT |
(no file at all) | |
1 // $G $D/$F.go && $L $F.$A && ./$A.out >tmp.go && | 1 // runoutput |
2 // $G tmp.go && $L tmp.$A && ./$A.out || echo BUG: 64bit | |
3 // rm -f tmp.go | |
4 | 2 |
5 // Copyright 2009 The Go Authors. All rights reserved. | 3 // Copyright 2009 The Go Authors. All rights reserved. |
6 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
7 // license that can be found in the LICENSE file. | 5 // license that can be found in the LICENSE file. |
8 | 6 |
9 // Generate test of 64-bit arithmetic. | 7 // Generate test of 64-bit arithmetic. |
10 // Most synthesized routines have different cases for | 8 // Most synthesized routines have different cases for |
11 // constants vs variables and even the generated code has | 9 // constants vs variables and even the generated code has |
12 // different cases for large and small constants, | 10 // different cases for large and small constants, |
13 // 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... |
700 constTests() | 698 constTests() |
701 | 699 |
702 fmt.Fprintf(bout, "func main() {\n") | 700 fmt.Fprintf(bout, "func main() {\n") |
703 for i := 0; i < ntest; i++ { | 701 for i := 0; i < ntest; i++ { |
704 fmt.Fprintf(bout, "\ttest%v();\n", i) | 702 fmt.Fprintf(bout, "\ttest%v();\n", i) |
705 } | 703 } |
706 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n") | 704 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n") |
707 fmt.Fprintf(bout, "}\n") | 705 fmt.Fprintf(bout, "}\n") |
708 bout.Flush() | 706 bout.Flush() |
709 } | 707 } |
LEFT | RIGHT |