aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/epiphany/interrupt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/epiphany/interrupt.c')
-rw-r--r--gcc/testsuite/gcc.target/epiphany/interrupt.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/epiphany/interrupt.c b/gcc/testsuite/gcc.target/epiphany/interrupt.c
new file mode 100644
index 0000000..a44c79e
--- /dev/null
+++ b/gcc/testsuite/gcc.target/epiphany/interrupt.c
@@ -0,0 +1,14 @@
+void __attribute__((interrupt("dma0")))
+f (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" } */
+}