]> Cypherpunks.ru repositories - gostls13.git/blob - src/cmd/cgo/internal/testerrors/testdata/issue14669.go
runtime: remove crash_cgo_test CgoRaceSignal timeout
[gostls13.git] / src / cmd / cgo / internal / testerrors / 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 }