PR debug/48204
[official-gcc.git] / gcc / testsuite / gcc.dg / pragma-isr-trap_exit.c
blob00a0608ccb409d29c27c6a5896b1e91dc6931854
1 /* { dg-do compile { target sh-*-* sh[1234ble]*-*-* } } */
2 /* { dg-options "-O" } */
3 /* This test case will check whether trapa is generated only for isr. */
4 #pragma interrupt
5 void isr() __attribute__ ((trap_exit (4)));
6 void isr()
9 void delay(int a)
12 int main()
14 return 0;
17 /* { dg-final { scan-assembler-times "trapa\[ \t\]\[ \t\]*#4" 1} } */