• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9package main
10
11/*
12typedef long double             Float128;
13
14typedef struct SV {
15    union {
16        Float128         float128;
17    } value;
18} SV;
19*/
20import "C"
21
22type ts struct {
23	tv *C.SV // ERROR HERE
24}
25
26func main() {}
27