summaryrefslogtreecommitdiff
path: root/test/char_lit.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2008-03-26 09:28:57 -0700
committerRobert Griesemer <gri@golang.org>2008-03-26 09:28:57 -0700
commit2f5b4d9893051be6bb946954a50c34b694957612 (patch)
tree34456e7f25b74ab46ae7f6fe3b123b9155edfc87 /test/char_lit.go
parent67aafa6f5718352f0ada5abd9687f94df9a2d534 (diff)
downloadgo-git-2f5b4d9893051be6bb946954a50c34b694957612.tar.gz
- new directory structure
SVN=113851
Diffstat (limited to 'test/char_lit.go')
-rw-r--r--test/char_lit.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/char_lit.go b/test/char_lit.go
new file mode 100644
index 0000000000..66ffec2085
--- /dev/null
+++ b/test/char_lit.go
@@ -0,0 +1,35 @@
+// $G $F.go && $L $F.$A &&./$A.out
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+func main() {
+ [ ' ',
+ 'a',
+ // need to fix Coco/R scanner to read Unicode.
+ // 'ä',
+ //'本',
+ '\a',
+ '\b',
+ '\f',
+ '\n',
+ '\r',
+ '\t',
+ '\v',
+ '\\',
+ '\'',
+ '\"',
+ '\000',
+ '\123',
+ '\x00',
+ '\xca',
+ '\xFE',
+ '\u0123',
+ '\ubabe',
+ '\U0123ABCD',
+ '\Ucafebabe'
+ ]
+}