Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(645)

Delta Between Two Patch Sets: test/64bit.go

Issue 6845113: code review 6845113: cmd/gc: Error out on division by constant zero. (Closed)
Left Patch Set: diff -r a2a0638509dc https://code.google.com/p/go/ Created 12 years, 4 months ago
Right Patch Set: diff -r 9379ab966cb2 https://code.google.com/p/go/ Created 12 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/gc/typecheck.c ('k') | test/fixedbugs/bug410.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b