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
commit42a691b8778becb7d2ee78ac171e26e03dbbf30a (patch)
tree723383fefe3be11453e2eace11d9b98008d5570f /test/char_lit.go
parent565b5dc0760baf556f83adf847f578718a1c571f (diff)
downloadgo-git-42a691b8778becb7d2ee78ac171e26e03dbbf30a.tar.gz
fix build: invalid character literals
R=r CC=golang-dev https://golang.org/cl/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 689a54a2fa..e4f3f83235 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)
}
}