Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr78148.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR target/78148 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -fcompare-debug" } */ | |
4 | |
5 struct A { int a, b; }; | |
6 struct B { char c, d; }; | |
7 extern void bar (struct A, struct B); | |
8 struct C { char e, f; } a; | |
9 struct D | |
10 { | |
11 int g; | |
12 struct C h[4]; | |
13 }; | |
14 struct D *e; | |
15 | |
16 struct D | |
17 foo (void) | |
18 { | |
19 int b; | |
20 struct B c; | |
21 struct A d; | |
22 d.b = c.c = c.d = 0; | |
23 bar (d, c); | |
24 } | |
25 | |
26 void | |
27 baz () | |
28 { | |
29 e->h[0].e = e->h[0].f = 0; | |
30 foo (); | |
31 } |