Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/tree-ssa/pr30375.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-O2 -fdump-tree-dse1" } */ | |
3 | |
4 typedef struct _s { | |
5 int a; | |
6 int b; | |
7 int c; | |
8 int d; | |
9 } s; | |
10 | |
11 extern void g(s*); | |
12 extern void f(void); | |
13 | |
14 void test_signed_msg_encoding(void) | |
15 { | |
16 s signInfo = { sizeof(signInfo), 0 }; | |
17 | |
18 signInfo.b = 1; | |
19 signInfo.c = 0; | |
20 g(&signInfo); | |
21 signInfo.d = 0; | |
22 f(); | |
23 } | |
24 | |
25 /* { dg-final { scan-tree-dump-times "MEM\\\[\\(struct _s \\*\\)&signInfo \\+ \[0-9\]+B\\\] = {}" 1 "dse1" } } */ | |
26 |