issue14669.go 368 B

1234567891011121314151617181920212223
  1. // Copyright 2016 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. // Issue 14669: test that fails when build with CGO_CFLAGS selecting
  5. // optimization.
  6. package p
  7. /*
  8. const int E = 1;
  9. typedef struct s {
  10. int c;
  11. } s;
  12. */
  13. import "C"
  14. func F() {
  15. _ = C.s{
  16. c: C.E,
  17. }
  18. }