aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arc/interrupt-3.c
blob: fa598d67e6b1bfce4ae90af892bca1888b8093d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void __attribute__ ((interrupt))
handler0 (void)
{ /* { dg-error "wrong number of arguments specified" } */
}

void __attribute__ ((interrupt("you load too")))
handler1 (void)
{ /* { dg-warning "is not \"ilink1\" or \"ilink2\"" } */
}

void __attribute__ ((interrupt(42)))
hander2 (void)
{ /* { dg-warning "is not a string constant" } */
}