Side by Side Diff: misc/cgo/test/backdoor/runtime.c
Issue 149720043 :
code review 149720043: cmd/go: prohibit C sources files unless using cgo (Closed)
Patch Set: diff -r 2f66d595a9ec50db3bf4fe871c6a25a5fff21df3 https://code.google.com/p/go/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
misc/cgo/test/backdoor/backdoor.go
misc/cgo/test/backdoor/backdoor_gccgo.go
misc/cgo/test/backdoor/runtime.c
misc/cgo/test/issue7695_test.go
src/cmd/go/pkg.go
src/cmd/go/test.bash
src/cmd/go/testdata/src/badc/x.c
src/cmd/go/testdata/src/badc/x.go
src/net/empty.s
src/runtime/debug/debug.s
OLD NEW
(Empty) 1 // Copyright 2011 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 // Expose some runtime functions for testing.
6 // Must be in a non-cgo-using package so that
7 // the go command compiles this file with 6c, not gcc.
8
9 // +build gc
10
11 typedef char bool;
12
13 // This is what a cgo-compiled stub declaration looks like.
14 void
15 ·Issue7695(struct{void *y[8*sizeof(void*)];}p)
16 {
17 USED(p);
18 }
OLD NEW