annotate libgo/misc/cgo/test/duplicate_symbol.go @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // Copyright 2010 The Go Authors. All rights reserved.
kono
parents:
diff changeset
2 // Use of this source code is governed by a BSD-style
kono
parents:
diff changeset
3 // license that can be found in the LICENSE file.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 // This file contains test cases for cgo.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 package cgotest
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 /*
kono
parents:
diff changeset
10 int base_symbol = 0;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 #define alias_one base_symbol
kono
parents:
diff changeset
13 #define alias_two base_symbol
kono
parents:
diff changeset
14 */
kono
parents:
diff changeset
15 import "C"
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 import "fmt"
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 func duplicateSymbols() {
kono
parents:
diff changeset
20 fmt.Printf("%v %v %v\n", C.base_symbol, C.alias_one, C.alias_two)
kono
parents:
diff changeset
21 }