annotate libgo/misc/cgo/test/issue5740.go @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // Copyright 2013 The Go Authors. All rights reserved.
kono
parents:
diff changeset
2 // Use of this source code is governed by a BSD-style
kono
parents:
diff changeset
3 // license that can be found in the LICENSE file.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 package cgotest
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 // int test5740a(void), test5740b(void);
kono
parents:
diff changeset
8 import "C"
kono
parents:
diff changeset
9 import "testing"
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 func test5740(t *testing.T) {
kono
parents:
diff changeset
12 if v := C.test5740a() + C.test5740b(); v != 5 {
kono
parents:
diff changeset
13 t.Errorf("expected 5, got %v", v)
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15 }