1// run 2 3// Copyright 2009 The Go Authors. All rights reserved. 4// Use of this source code is governed by a BSD-style 5// license that can be found in the LICENSE file. 6 7package main 8 9func main() { 10 var s2 string = "\a\b\f\n\r\t\v"; // \r is miscompiled 11 _ = s2; 12} 13/* 14main.go.c: In function ‘main_main’: 15main.go.c:20: error: missing terminating " character 16main.go.c:21: error: missing terminating " character 17main.go.c:24: error: ‘def’ undeclared (first use in this function) 18main.go.c:24: error: (Each undeclared identifier is reported only once 19main.go.c:24: error: for each function it appears in.) 20main.go.c:24: error: syntax error before ‘def’ 21main.go.c:24: error: missing terminating " character 22main.go.c:25: warning: excess elements in struct initializer 23main.go.c:25: warning: (near initialization for ‘slit’) 24main.go.c:36: error: syntax error at end of input 25*/ 26