Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / sra-11.c
blob282f327bbad20935265d8e0495c984bf3707e1a5
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-esra-details" } */
4 struct S
6 int i;
7 int j;
8 char c[32]; /* this disables total scalarization */
9 };
11 extern struct S bar(void);
13 int foo1 (int b)
15 struct S s1;
17 s1 = bar ();
18 return s1.i;
21 extern struct S *g;
23 int foo2 (void)
25 struct S s2;
27 s2 = *g;
28 return s2.i;
31 /* { dg-final { scan-tree-dump-times "Created a replacement for s1" 0 "esra"} } */
32 /* { dg-final { scan-tree-dump-times "Created a replacement for s2" 1 "esra"} } */