2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / avr / torture / pr64331.c
blob1934ccfd29477a91b4cc1eadc56575d52bff09cd
1 /* { dg-do run } */
3 typedef struct
5 unsigned a, b;
6 } T2;
9 __attribute__((__noinline__, __noclone__))
10 void foo2 (T2 *t, int x)
12 if (x != t->a)
14 t->a = x;
16 if (x && x == t->b)
17 t->a = 20;
22 T2 t;
24 int main (void)
26 t.a = 1;
27 t.b = 1234;
29 foo2 (&t, 1234);
31 if (t.a != 20)
32 __builtin_abort();
34 __builtin_exit (0);
36 return 0;