gcc/testsuite/gcc.target/mips/no-dsp-1.c
raw| 1 | /* { dg-options "-mno-dsp -ffat-lto-objects" } */ |
| 2 | /* This is testing for errors which can only happen in assembly generation. |
| 3 | dg-error does not guarantee assembly generation, so we need to do it |
| 4 | manually by using -ffat-lto-objects. */ |
| 5 | |
| 6 | void |
| 7 | foo (void) |
| 8 | { |
| 9 | register int x asm ("$ac1hi"); /* { dg-error "cannot be accessed" } */ |
| 10 | asm volatile ("" : "=r" (x)); |
| 11 | } |