OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [fixedbugs/] [bug017.go] - Blame information for rev 700

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
// $G $D/$F.go && $L $F.$A && ./$A.out
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
 
7
package main
8
 
9
func main() {
10
        var s2 string = "\a\b\f\n\r\t\v";  // \r is miscompiled
11
        _ = s2;
12
}
13
/*
14
main.go.c: In function ‘main_main’:
15
main.go.c:20: error: missing terminating " character
16
main.go.c:21: error: missing terminating " character
17
main.go.c:24: error: ‘def’ undeclared (first use in this function)
18
main.go.c:24: error: (Each undeclared identifier is reported only once
19
main.go.c:24: error: for each function it appears in.)
20
main.go.c:24: error: syntax error before ‘def’
21
main.go.c:24: error: missing terminating " character
22
main.go.c:25: warning: excess elements in struct initializer
23
main.go.c:25: warning: (near initialization for ‘slit’)
24
main.go.c:36: error: syntax error at end of input
25
*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.