From 1e4b5b0b2954165f23a1b9705be24c50227a6979 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Tue, 7 Feb 2012 20:37:23 +0000 Subject: [PATCH] * gcc.target/epiphany/interrupt-2.c: New test. From-SVN: r183982 --- gcc/testsuite/ChangeLog | 4 ++++ .../gcc.target/epiphany/interrupt-2.c | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 gcc/testsuite/gcc.target/epiphany/interrupt-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c7f38b82e8a..e52990fbdbf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-02-07 Joern Rennecke + + * gcc.target/epiphany/interrupt-2.c: New test. + 2012-02-07 Richard Sandiford PR target/52155 diff --git a/gcc/testsuite/gcc.target/epiphany/interrupt-2.c b/gcc/testsuite/gcc.target/epiphany/interrupt-2.c new file mode 100644 index 00000000000..4c0de6c5d6c --- /dev/null +++ b/gcc/testsuite/gcc.target/epiphany/interrupt-2.c @@ -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 } } */