diff options
Diffstat (limited to 'gcc/testsuite/go.go-torture/execute/const-2.go')
-rw-r--r-- | gcc/testsuite/go.go-torture/execute/const-2.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/go.go-torture/execute/const-2.go b/gcc/testsuite/go.go-torture/execute/const-2.go new file mode 100644 index 000000000..a7301a5c5 --- /dev/null +++ b/gcc/testsuite/go.go-torture/execute/const-2.go @@ -0,0 +1,7 @@ +package main + +const c = 3; + +func main() { + if c != 3 { panic(0) } +} |