]> Cypherpunks repositories - gostls13.git/commitdiff
resolve that all unnecessary backslashes are rejected.
authorRob Pike <r@golang.org>
Thu, 4 Sep 2008 23:48:19 +0000 (16:48 -0700)
committerRob Pike <r@golang.org>
Thu, 4 Sep 2008 23:48:19 +0000 (16:48 -0700)
bug068 is not a bug.

R=gri
OCL=14838
CL=14838

test/fixedbugs/bug068.go [moved from test/bugs/bug068.go with 67% similarity]
test/golden.out

similarity index 67%
rename from test/bugs/bug068.go
rename to test/fixedbugs/bug068.go
index 9fe06565233c9403f0e9a9a5842af2e7abee51ef..f1dcce379f12b41083f9084bc78a362004757320 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// RESOLUTION: This program is illegal.  We should reject all unnecessary backslashes.
+
 package main
 
 const c = '\'';  // this works
@@ -12,6 +14,6 @@ const s = "\'";  // this doesn't
 /*
 There is no reason why the escapes need to be different inside strings and chars.
 
-uetli:~/go/test/bugs gri$ 6g bug065.go
-bug065.go:6: unknown escape sequence: '
+uetli:~/go/test/bugs gri$ 6g bug068.go
+bug068.go:6: unknown escape sequence: '
 */
index 003ef0aafe2fbc72b8b6c2adc10a485c23f64450..aa1173a66a024ff38f8db632d493fe1cfe2f6e75 100644 (file)
@@ -84,10 +84,6 @@ bugs/bug064.go:15: illegal types for operand: CALL
        ({<u><int32>INT32;<v><int32>INT32;})
 BUG: compilation should succeed
 
-=========== bugs/bug068.go
-bugs/bug068.go:6: unknown escape sequence: '
-BUG: compilation should succeed
-
 =========== bugs/bug074.go
 bugs/bug074.go:6: illegal types for operand: CONV
        (<string>*STRING)
@@ -186,6 +182,9 @@ fixedbugs/bug051.go:10: expression must be a constant
 =========== fixedbugs/bug067.go
 ok
 
+=========== fixedbugs/bug068.go
+fixedbugs/bug068.go:8: unknown escape sequence: '
+
 =========== fixedbugs/bug070.go
 outer loop top k 0
 inner loop top i 0