OLD | NEW |
1 // $G $F.go && $L $F.$A &&./$A.out | 1 // $G $F.go && $L $F.$A &&./$A.out |
2 | 2 |
3 // Copyright 2009 The Go Authors. All rights reserved. | 3 // Copyright 2009 The Go Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
5 // license that can be found in the LICENSE file. | 5 // license that can be found in the LICENSE file. |
6 | 6 |
7 package main | 7 package main |
8 | 8 |
9 import "os" | 9 import "os" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 '\'' + | 25 '\'' + |
26 '\000' + | 26 '\000' + |
27 '\123' + | 27 '\123' + |
28 '\x00' + | 28 '\x00' + |
29 '\xca' + | 29 '\xca' + |
30 '\xFE' + | 30 '\xFE' + |
31 '\u0123' + | 31 '\u0123' + |
32 '\ubabe' + | 32 '\ubabe' + |
33 '\U0010FFFF' + | 33 '\U0010FFFF' + |
34 '\U000ebabe' | 34 '\U000ebabe' |
35 ; | |
36 if '\U000ebabe' != 0x000ebabe { | 35 if '\U000ebabe' != 0x000ebabe { |
37 » » print("ebabe wrong\n"); | 36 » » print("ebabe wrong\n") |
38 os.Exit(1) | 37 os.Exit(1) |
39 } | 38 } |
40 if i != 0x20e213 { | 39 if i != 0x20e213 { |
41 » » print("number is ", i, " should be ", 0x20e213, "\n"); | 40 » » print("number is ", i, " should be ", 0x20e213, "\n") |
42 os.Exit(1) | 41 os.Exit(1) |
43 » » } | 42 » } |
44 } | 43 } |
OLD | NEW |