go issue20266 源码

  • 2022-07-15
  • 浏览 (1038)

golang issue20266 代码

文件路径:/misc/cgo/test/testdata/issue20266.go

// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Issue 20266: use -I with a relative path.

package cgotest

/*
#cgo CFLAGS: -I issue20266 -Iissue20266 -Ddef20266
#include "issue20266.h"
*/
import "C"

import "testing"

func test20266(t *testing.T) {
	if got, want := C.issue20266, 20266; got != want {
		t.Errorf("got %d, want %d", got, want)
	}
}

相关信息

go 源码目录

相关文章

go cgo_linux_test 源码

go cgo_test 源码

go gcc68255 源码

go issue23555 源码

go issue24161_darwin_test 源码

go issue26430 源码

go issue26743 源码

go issue27340 源码

go issue29563 源码

go issue30527 源码

0  赞