blob: 6c63ebf36885e119e88af65f7d2fcdb17645f334 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* Check that trapa / interrput_handler attributes can paired in
either order. */
/* { dg-do compile } */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler "trapa\[ \t\]\[ \t\]*#4"} } */
/* { dg-final { scan-assembler-times "trapa" 1 } } */
void h0 (void) __attribute__ ((trap_exit (4))) __attribute__ ((interrupt_handler));
void h1 (void) __attribute__ ((interrupt_handler)) __attribute__ ((trap_exit (5)));
void
foo (void)
{
}
void
h0 (void)
{
}
void delay
(int a)
{
}
int
main (void)
{
return 0;
}
|