aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/epiphany/interrupt-2.c
blob: 4c0de6c5d6cba68d37ed7e528e4104c324b121d2 (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
/* { dg-options "-g" } */

void __attribute__((interrupt))
universal_handler (void)
{
}

void __attribute__((interrupt("dma0","Vss","dma1")))
g (void)
{ /* { dg-warning "is not \"reset\"" } */
}

void __attribute__((interrupt("dma0","dma1","timer1","reset"),
		    forwarder_section("test")))
misc_handler (void)
{
}

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

/* { dg-final { scan-assembler-times "b\[ \t\]*_misc_handler" 4 } } */