]> Cypherpunks repositories - gostls13.git/commitdiff
fix build: invalid character literals
authorRuss Cox <rsc@golang.org>
Wed, 9 Jun 2010 05:32:04 +0000 (22:32 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 9 Jun 2010 05:32:04 +0000 (22:32 -0700)
R=r
CC=golang-dev
https://golang.org/cl/1631041

test/char_lit.go

index 689a54a2faeb49a946e19a22430ac35c03dfa954..e4f3f8323563f027a7198a0cb971d5f2dcabe3ab 100644 (file)
@@ -30,15 +30,15 @@ func main() {
                '\xFE' +
                '\u0123' +
                '\ubabe' +
-               '\U0123ABCD' +
-               '\Ucafebabe'
+               '\U0010FFFF' +
+               '\U000ebabe'
                ;
-       if '\Ucafebabe' != 0xcafebabe {
-               print("cafebabe wrong\n");
+       if '\U000ebabe' != 0x000ebabe {
+               print("ebabe wrong\n");
                os.Exit(1)
        }
-       if i != 0xcc238de1 {
-               print("number is ", i, " should be ", 0xcc238de1, "\n");
+       if i != 0x20e213 {
+               print("number is ", i, " should be ", 0x20e213, "\n");
                os.Exit(1)
                }
 }