issue28069.go 555 B

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