Debian Codegraph @

libgo/misc/cgo/errors/testdata/issue28069.go

raw
1 // Copyright 2018 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 // Test that the error message for an unrepresentable typedef in a
6 // union appears on the right line. This test is only run if the size
7 // of long double is larger than 64.
8
9 package main
10
11 /*
12 typedef long double Float128;
13
14 typedef struct SV {
15 union {
16 Float128 float128;
17 } value;
18 } SV;
19 */
20 import "C"
21
22 type ts struct {
23 tv *C.SV // ERROR HERE
24 }
25
26 func main() {}