mirror of git://gcc.gnu.org/git/gcc.git
* gcc.target/epiphany/interrupt-2.c: New test.
From-SVN: r183982
This commit is contained in:
parent
b806269c9b
commit
1e4b5b0b29
|
@ -1,3 +1,7 @@
|
|||
2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
|
||||
|
||||
* gcc.target/epiphany/interrupt-2.c: New test.
|
||||
|
||||
2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
|
||||
|
||||
PR target/52155
|
||||
|
|
|
@ -0,0 +1,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 } } */
|
Loading…
Reference in New Issue