introduce TDF_compare_debug, omit OBJ_TYPE_REF casts with it
[official-gcc.git] / libgo / misc / cgo / test / issue1328.go
blob2401c10e300687556fde412705b318f3d90785a1
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.
5 package cgotest
7 import "testing"
9 // extern void BackIntoGo(void);
10 // void IntoC(void);
11 import "C"
13 //export BackIntoGo
14 func BackIntoGo() {
15 x := 1
17 for i := 0; i < 10000; i++ {
18 xvariadic(x)
19 if x != 1 {
20 panic("x is not 1?")
25 func xvariadic(x ...interface{}) {
28 func test1328(t *testing.T) {
29 C.IntoC()