mirror of
https://github.com/golang/go.git
synced 2025-05-23 16:31:27 +00:00
This makes the test easier to run in isolation and easier to change, and simplifies the code to run the tests in parallel. updates #13467 Change-Id: I5622b5cc98276970347da18e95d071dbca3c5cc1 Reviewed-on: https://go-review.googlesource.com/63276 Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
24 lines
368 B
Go
24 lines
368 B
Go
// Copyright 2016 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Issue 14669: test that fails when build with CGO_CFLAGS selecting
|
|
// optimization.
|
|
|
|
package p
|
|
|
|
/*
|
|
const int E = 1;
|
|
|
|
typedef struct s {
|
|
int c;
|
|
} s;
|
|
*/
|
|
import "C"
|
|
|
|
func F() {
|
|
_ = C.s{
|
|
c: C.E,
|
|
}
|
|
}
|