Source file misc/cgo/errors/testdata/issue14669.go

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

View as plain text