issue20266.go 463 B

123456789101112131415161718192021
  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. // Issue 20266: use -I with a relative path.
  5. package cgotest
  6. /*
  7. #cgo CFLAGS: -I issue20266 -Iissue20266 -Ddef20266
  8. #include "issue20266.h"
  9. */
  10. import "C"
  11. import "testing"
  12. func test20266(t *testing.T) {
  13. if got, want := C.issue20266, 20266; got != want {
  14. t.Errorf("got %d, want %d", got, want)
  15. }
  16. }