summaryrefslogtreecommitdiff
path: root/test/string_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
commit6cbb50ac6dca6176685ba9b6e165e691f00cb47c (patch)
tree34456e7f25b74ab46ae7f6fe3b123b9155edfc87 /test/string_lit.go
parent37e52258ee5067e2d6864435a7281b19b403764d (diff)
downloadgo-6cbb50ac6dca6176685ba9b6e165e691f00cb47c.tar.gz
- new directory structure
SVN=113851
Diffstat (limited to 'test/string_lit.go')
-rw-r--r--test/string_lit.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/string_lit.go b/test/string_lit.go
new file mode 100644
index 000000000..568e7a511
--- /dev/null
+++ b/test/string_lit.go
@@ -0,0 +1,29 @@
+// $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",
+ //"ä",
+ //"本",
+ "\a\b\f\n\r\t\v\\\'\"",
+ "\000\123\x00\xca\xFE\u0123\ubabe\U0123ABCD\Ucafebabe",
+
+ ``,
+ ` `,
+ `'"`,
+ `a`,
+ //`ä`,
+ //`本`,
+ `\a\b\f\n\r\t\v\\\'\"`,
+ `\000\123\x00\xca\xFE\u0123\ubabe\U0123ABCD\Ucafebabe`,
+ `\x\u\U\`
+ ]
+}