* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / gcc.dg / pr30643.c
blob67fe111a77f17fa0533fe34dc3ef047480d1cc30
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler-not "undefined" } } */
5 /* Make sure we optimize all calls away. */
7 extern void undefined (void);
8 struct s { int a, b; };
9 void bar (struct s *ps, int *p, int *__restrict__ rp, int *__restrict__ rq)
11 ps->a = 0;
12 ps->b = 1;
13 if (ps->a != 0)
14 undefined ();
15 p[0] = 0;
16 p[1] = 1;
17 if (p[0] != 0)
18 undefined ();
19 rp[0] = 0;
20 rq[0] = 1;
21 if (rp[0] != 0)
22 undefined ();
24 int main (void) {
25 return 0;