Home | History | Annotate | Download | only in test
      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.
      4 
      5 // This file contains test cases for cgo.
      6 
      7 package cgotest
      8 
      9 /*
     10 int base_symbol = 0;
     11 
     12 #define alias_one base_symbol
     13 #define alias_two base_symbol
     14 */
     15 import "C"
     16 
     17 import "fmt"
     18 
     19 func duplicateSymbols() {
     20 	fmt.Printf("%v %v %v\n", C.base_symbol, C.alias_one, C.alias_two)
     21 }
     22