1 /* PR inline-asm/23200 */ 2 /* { dg-do compile { target nonpic } } */ 3 /* { dg-options "-O0" } */ 4 5 static char var; 6 7 void foo(void)8foo (void) 9 { 10 asm volatile ("" :: "i" (&var + 1)); 11 } 12 13 typedef int T[]; 14 typedef T *P; 15 16 int var2; 17 18 void bar(void)19bar (void) 20 { 21 asm volatile ("" :: "i"(&(*(P)&var2)[1])); 22 } 23