mirror of
https://github.com/golang/go
synced 2025-05-15 04:52:14 +00:00
- new directory structure
SVN=113851
This commit is contained in:
35
test/char_lit.go
Normal file
35
test/char_lit.go
Normal file
@ -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'
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user