blob: 33c3f5c530c9fb472a656555285dc01c4f9e8f63 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dse" } */
typedef struct _s {
int a;
int b;
int c;
int d;
} s;
extern void g(s*);
extern void f(void);
void test_signed_msg_encoding(void)
{
s signInfo = { sizeof(signInfo), 0 };
signInfo.b = 1;
signInfo.c = 0;
g(&signInfo);
signInfo.d = 0;
f();
}
/* { dg-final { scan-tree-dump-times "signInfo = {};" 1 "dse1" } } */
/* { dg-final { cleanup-tree-dump "dse*" } } */