* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-isr-trapa.c
blobd17680589f8c96867aed11ffa5406e2fb9aa1e32
1 /* { dg-do compile { target sh-*-* sh[1234ble]*-*-*} } */
2 /* { dg-options "-O" } */
3 extern void foo ();
5 void
6 (__attribute__ ((trapa_handler)) isr) ()
8 foo ();
11 /* { dg-final { scan-assembler-times "rte" 1} } */
12 /* No interrupt-specific saves should be needed. /
13 /* { dg-final { scan-assembler-not "\[^f\]r\[0-7\]\[ \t,\]\[^\n\]*r15" } } */
14 /* { dg-final { scan-assembler-not "@r15\[^\n\]*\[^f\]r\[0-7\]\n" } } */
15 /* { dg-final { scan-assembler-not "\[^f\]r\[8-9\]" } } */
16 /* { dg-final { scan-assembler-not "\[^f\]r1\[,0-3\]" } } */
17 /* { dg-final { scan-assembler-not "macl" } } */