aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/epiphany/interrupt.c
blob: 86fb255613b3e5bfd8a51ea685ddfc08c444029a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-options "-g" } */

void __attribute__((interrupt("dma0")))
dma0_handler (void)
{
}

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

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

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