diff options
author | Robert Griesemer <gri@golang.org> | 2008-03-26 09:28:57 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2008-03-26 09:28:57 -0700 |
commit | 2f5b4d9893051be6bb946954a50c34b694957612 (patch) | |
tree | 34456e7f25b74ab46ae7f6fe3b123b9155edfc87 /test/char_lit.go | |
parent | 67aafa6f5718352f0ada5abd9687f94df9a2d534 (diff) | |
download | go-git-2f5b4d9893051be6bb946954a50c34b694957612.tar.gz |
- new directory structure
SVN=113851
Diffstat (limited to 'test/char_lit.go')
-rw-r--r-- | test/char_lit.go | 35 |
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' + ] +} |