2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20021006-1.c
blob63cc8a5af09404aa4e7a6c5bfdde1bfca937004b
1 /* PR target/7559
2 This testcase was miscompiled on x86-64 due to wrong access to the struct
3 members. */
5 extern void abort();
7 struct A {
8 long x;
9 };
11 struct R {
12 struct A a, b;
15 struct R R = {
16 {100}, {200}
19 void f(struct R r) {
20 if (r.a.x != R.a.x || r.b.x != R.b.x)
21 abort();
24 int main() {
25 f(R);
26 return 0;