mirror of
https://github.com/golang/go
synced 2024-11-24 08:50:14 -07:00
fix build: invalid character literals
R=r CC=golang-dev https://golang.org/cl/1631041
This commit is contained in:
parent
565b5dc076
commit
42a691b877
@ -30,15 +30,15 @@ func main() {
|
|||||||
'\xFE' +
|
'\xFE' +
|
||||||
'\u0123' +
|
'\u0123' +
|
||||||
'\ubabe' +
|
'\ubabe' +
|
||||||
'\U0123ABCD' +
|
'\U0010FFFF' +
|
||||||
'\Ucafebabe'
|
'\U000ebabe'
|
||||||
;
|
;
|
||||||
if '\Ucafebabe' != 0xcafebabe {
|
if '\U000ebabe' != 0x000ebabe {
|
||||||
print("cafebabe wrong\n");
|
print("ebabe wrong\n");
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if i != 0xcc238de1 {
|
if i != 0x20e213 {
|
||||||
print("number is ", i, " should be ", 0xcc238de1, "\n");
|
print("number is ", i, " should be ", 0x20e213, "\n");
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user