blob: 2a6728fd681e9ba8be3e0ae93221f211f1ecc9cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Check whether trapa is generated only for an ISR. */
/* { dg-do compile } */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler-times "trapa\[ \t\]\[ \t\]*#4" 1 } } */
#pragma interrupt
void isr (void) __attribute__ ((trap_exit (4)));
void
isr (void)
{
}
void
delay (int a)
{
}
int
main (void)
{
return 0;
}
|