Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20031106-5.c
blobe543939c77b7d82ecbd4cfe07522076e55b9a172
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
6 /* Check for cprop on different fields of same type structs. */
8 struct s
10 char d;
11 int a, b;
12 double m;
15 void foo2 (struct s* r, struct s* p)
17 r->a = 0;
18 p->b = 1;
19 r->a++;
20 p->b++;
21 if (r->a != 1)
22 link_error ();
23 if (p->b != 2)
24 link_error ();
27 /* There should be no link_error calls. */
28 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */