blob: a45e92f8c6f72cb5c7b7d46da0eb7e1c4c338e00 [file] [log] [blame]
/* Check that trapa / interrput_handler attributes can paired in
either order. */
/* { dg-do compile } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m5*" } { "" } } */
/* { 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;
}