OSDN Git Service

* gcc.target/epiphany/interrupt-2.c: New test.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Feb 2012 20:37:23 +0000 (20:37 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Feb 2012 20:37:23 +0000 (20:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183982 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/epiphany/interrupt-2.c [new file with mode: 0644]

index c7f38b8..e52990f 100644 (file)
@@ -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
diff --git a/gcc/testsuite/gcc.target/epiphany/interrupt-2.c b/gcc/testsuite/gcc.target/epiphany/interrupt-2.c
new file mode 100644 (file)
index 0000000..4c0de6c
--- /dev/null
@@ -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 } } */