]> Cypherpunks repositories - gostls13.git/commitdiff
add two more tests
authorRob Pike <r@golang.org>
Tue, 17 Jun 2008 17:56:28 +0000 (10:56 -0700)
committerRob Pike <r@golang.org>
Tue, 17 Jun 2008 17:56:28 +0000 (10:56 -0700)
SVN=123143

test/bugs/bug049.go [new file with mode: 0644]
test/bugs/bug050.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug049.go b/test/bugs/bug049.go
new file mode 100644 (file)
index 0000000..31da6c8
--- /dev/null
@@ -0,0 +1,17 @@
+// errchk $G $D/$F.go
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+func atom(s string) {
+       if s == nil {
+               return;
+       }
+}
+
+/*
+bug047.go:4: fatal error: stringpool: not string
+*/
diff --git a/test/bugs/bug050.go b/test/bugs/bug050.go
new file mode 100644 (file)
index 0000000..afc5455
--- /dev/null
@@ -0,0 +1,8 @@
+// errchk $G $D/$F.go
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+func main() {
+}
index 5c6b17b5d489ae2f96649ca2cbb101061a70757e..c2728e6d1c4443fd068e190e3d1111efc1860a4a 100644 (file)
@@ -242,6 +242,15 @@ bugs/bug048.go:7: illegal types for operand: CONV
 bugs/bug048.go:8: syntax error
 BUG: known to fail incorrectly
 
+=========== bugs/bug049.go
+bugs/bug049.go:6: fatal error: stringpool: not string
+BUG: fatal error
+
+=========== bugs/bug050.go
+bugs/bug050.go:3: package statement must be first
+sys.6:1 bugs/bug050.go:2: syntax error
+BUG: segfault
+
 =========== fixedbugs/bug000.go
 
 =========== fixedbugs/bug001.go