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 | f6317a21e5176b721f035a9cb548771ef79abd34 (patch) | |
tree | 44fe1addf9e972c578500b4e6907009f19fd81fd /test/char_lit.go | |
parent | 105c61f5ede0604545bfb2ae58d5627b8ddc0614 (diff) | |
download | go-f6317a21e5176b721f035a9cb548771ef79abd34.tar.gz |
fix build: invalid character literals
R=r
CC=golang-dev
http://codereview.appspot.com/1631041
Diffstat (limited to 'test/char_lit.go')
-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) } } |