Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr30375.c
blob50b3bfd565af068e51b75b69a0e9b0aff5eb7c2c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse" } */
4 typedef struct _s {
5 int a;
6 int b;
7 int c;
8 int d;
9 } s;
11 extern void g(s*);
12 extern void f(void);
14 void test_signed_msg_encoding(void)
16 s signInfo = { sizeof(signInfo), 0 };
18 signInfo.b = 1;
19 signInfo.c = 0;
20 g(&signInfo);
21 signInfo.d = 0;
22 f();
25 /* { dg-final { scan-tree-dump-times "signInfo = {}" 1 "dse1" } } */
26 /* { dg-final { cleanup-tree-dump "dse*" } } */