gcc/testsuite/gcc.target/powerpc/pr96866-2.c
raw| 1 | /* The "%a" modifier can't get the address of extern symbol directly from TOC |
| 2 | with -fPIC. */ |
| 3 | /* { dg-options "-fPIC -O2 -mno-pcrel" } */ |
| 4 | |
| 5 | /* It's to verify no ICE here, ignore error messages about invalid 'asm'. */ |
| 6 | /* { dg-excess-errors "pr96866-2.c" } */ |
| 7 | |
| 8 | void |
| 9 | f (void) |
| 10 | { |
| 11 | extern int x; |
| 12 | __asm__ volatile("#%a0" ::"X"(&x)); |
| 13 | } |