diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/m68k/interrupt_thread-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/m68k/interrupt_thread-3.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/m68k/interrupt_thread-3.c b/gcc/testsuite/gcc.target/m68k/interrupt_thread-3.c new file mode 100644 index 000000000..be83edb5f --- /dev/null +++ b/gcc/testsuite/gcc.target/m68k/interrupt_thread-3.c @@ -0,0 +1,7 @@ +/* { dg-do compile } */ +/* { dg-options "-mcpu=cpu32" } */ + +/* Check that interrupt_thread is rejected on CPUs other than + fido. */ + +extern void foo (void) __attribute__((interrupt_thread)); /* { dg-error "interrupt_thread is available only on fido" } */ |