]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/go.test/test/fixedbugs/bug007.go
Add Go frontend, libgo library, and Go testsuite.
[thirdparty/gcc.git] / gcc / testsuite / go.test / test / fixedbugs / bug007.go
1 // $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 type (
10 Point struct { x, y float };
11 Polar Point
12 )
13
14 func main() {
15 }
16
17 /*
18 bug7.go:5: addtyp: renaming Point to Polar
19 main.go.c:14: error: redefinition of typedef ‘_T_2’
20 main.go.c:13: error: previous declaration of ‘_T_2’ was here
21 main.go.c:16: error: redefinition of ‘struct _T_2’
22 */