diff options
author | Russ Cox <rsc@golang.org> | 2010-06-08 22:32:04 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-06-08 22:32:04 -0700 |
commit | cc5336b66c854904f622f322aba5f522c6e04f3c (patch) | |
tree | 44fe1addf9e972c578500b4e6907009f19fd81fd | |
parent | 0b814afd0a2fa1dded3eaf4d2f79b20438842955 (diff) | |
download | golang-cc5336b66c854904f622f322aba5f522c6e04f3c.tar.gz |
fix build: invalid character literals
R=r
CC=golang-dev
http://codereview.appspot.com/1631041
-rw-r--r-- | test/char_lit.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/char_lit.go b/test/char_lit.go index 689a54a2f..e4f3f8323 100644 --- a/test/char_lit.go +++ b/test/char_lit.go @@ -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) } } |