github.com/golang/gofrontend@v0.0.0-20240429183944-60f985a78526/libgo/misc/cgo/test/testdata/issue20266.go (about) 1 // Copyright 2017 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 // Issue 20266: use -I with a relative path. 6 7 package cgotest 8 9 /* 10 #cgo CFLAGS: -I issue20266 -Iissue20266 -Ddef20266 11 #include "issue20266.h" 12 */ 13 import "C" 14 15 import "testing" 16 17 func test20266(t *testing.T) { 18 if got, want := C.issue20266, 20266; got != want { 19 t.Errorf("got %d, want %d", got, want) 20 } 21 }