Home | History | Annotate | Download | only in test
      1 // Copyright 2013 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 package cgotest
      6 
      7 // Test handling of #defined names in clang.
      8 // golang.org/issue/6128.
      9 
     10 /*
     11 // NOTE: Must use hex, or else a shortcut for decimals
     12 // in cgo avoids trying to pass this to clang.
     13 #define X 0x1
     14 */
     15 import "C"
     16 
     17 func test6128() {
     18 	// nothing to run, just make sure this compiles.
     19 	_ = C.X
     20 }
     21