Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / pragma-isr-trap_exit.c
blob9b3233a36b552104430a53fb0145289ddcd9fadf
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} } */