summaryrefslogtreecommitdiff
path: root/test/char_lit.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-08 22:32:04 -0700
committerRuss Cox <rsc@golang.org>2010-06-08 22:32:04 -0700
commitf6317a21e5176b721f035a9cb548771ef79abd34 (patch)
tree44fe1addf9e972c578500b4e6907009f19fd81fd /test/char_lit.go
parent105c61f5ede0604545bfb2ae58d5627b8ddc0614 (diff)
downloadgo-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.go12
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)
}
}