1 /* PR middle-end/14289 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O0" } */ 4 5 register int a[2] asm("ebx"); 6 Nase(void)7 void Nase(void) 8 { 9 int i=6; 10 a[i]=5; /* { dg-error "address of global" } */ 11 } 12 13