pr79732.c: Require alias support.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57425-2.c
blobccb546e0ee78708e4ed7441cfa067e66c294d3a3
1 /* { dg-do run } */
3 extern void abort (void) __attribute__((noreturn));
5 int
6 main ()
8 int sum = 0;
10 int a[20];
11 int *c;
12 c = a;
13 asm ("": "=r" (c):"0" (c));
14 *c = 0;
15 asm ("": "=r" (c):"0" (c));
16 sum += *c;
19 long b[10];
20 long *c;
21 c = b;
22 asm ("": "=r" (c):"0" (c));
23 *c = 1;
24 asm ("": "=r" (c):"0" (c));
25 sum += *c;
28 if (sum != 1)
29 abort();
30 return 0;