]> matita.cs.unibo.it Git - pkg-cerco/acc.git/blob - tests/GCCTestSuite/pragma-isr-trap_exit.c.expected
Imported Upstream version 0.2
[pkg-cerco/acc.git] / tests / GCCTestSuite / pragma-isr-trap_exit.c.expected
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()
7 {
8 }
9 void delay(int a)
10 {
11 }
12 int main()
13 {
14   return 0;
15 }
16
17 /* { dg-final { scan-assembler-times "trapa\[ \t\]\[ \t\]*#4" 1} } */