introduce TDF_compare_debug, omit OBJ_TYPE_REF casts with it
[official-gcc.git] / libgo / misc / cgo / test / duplicate_symbol.go
blob6144271321593bc83a6ff035bc60ad6dc62e521c
1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // This file contains test cases for cgo.
7 package cgotest
9 /*
10 int base_symbol = 0;
12 #define alias_one base_symbol
13 #define alias_two base_symbol
15 import "C"
17 import "fmt"
19 func duplicateSymbols() {
20 fmt.Printf("%v %v %v\n", C.base_symbol, C.alias_one, C.alias_two)