* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr23200.c
blob56bf59c861ae1cdc53e56f4d4d9c912ef50795ed
1 /* PR inline-asm/23200 */
2 /* { dg-do compile { target nonpic } } */
3 /* { dg-options "-O0" } */
5 static char var;
7 void
8 foo (void)
10 asm volatile ("" :: "i" (&var + 1));
13 typedef int T[];
14 typedef T *P;
16 int var2;
18 void
19 bar (void)
21 asm volatile ("" :: "i"(&(*(P)&var2)[1]));