1 /* { dg-do run } */ 2 3 extern void abort (void) __attribute__((noreturn)); 4 5 int main()6main () 7 { 8 int sum = 0; 9 { 10 long a[20]; 11 long *c; 12 c = a; 13 asm ("": "=r" (c):"0" (c)); 14 *c = 0; 15 asm ("": "=r" (c):"0" (c)); 16 sum += *c; 17 } 18 { 19 long long b[10]; 20 long long *c; 21 c = b; 22 asm ("": "=r" (c):"0" (c)); 23 *c = 1; 24 asm ("": "=r" (c):"0" (c)); 25 sum += *c; 26 } 27 28 if (sum != 1) 29 abort(); 30 return 0; 31 } 32