if g != 4.5 { print " fail\n"; return 1; }
return 0;
}
-/*
-should 4.5 * iota be ok? perhaps, perhaps not. but (all!) error msgs are bad:
-bug6.go:4: illegal combination of literals 0 0
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: expression must be a constant
-bug6.go:4: fatal error: too many errors
-*/
package main
func main() {
- switch ; {} // compiles; should be an error (should be simplevardecl before ;)
+ switch ; { case true: return; default: return }
}
/*
-bug003.go:6: switch statement must have case labels
bug003.go:6: fatal error: walkswitch: not case EMPTY
*/
=========== ken/strvar.go
-=========== bugs/bug001.go
-BUG: known to succeed incorrectly
-
-=========== bugs/bug002.go
-BUG: known to succeed incorrectly
-
-=========== bugs/bug003.go
-bugs/bug003.go:6: switch statement must have case labels
-BUG: fatal error
-
-=========== bugs/bug004.go
-BUG: known to succeed incorrectly
-
=========== bugs/bug006.go
zero
fail
=========== fixedbugs/bug000.go
+=========== fixedbugs/bug001.go
+
+=========== fixedbugs/bug002.go
+
+=========== fixedbugs/bug003.go
+
+=========== fixedbugs/bug004.go
+
=========== fixedbugs/bug005.go
=========== fixedbugs/bug007.go