Move from root of repository to intented place.
authorNitin Yewale <nitiny@kpitcummins.com>
Sun, 21 Nov 2004 22:54:00 +0000 (22:54 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sun, 21 Nov 2004 22:54:00 +0000 (22:54 +0000)
From-SVN: r90988

gcc/testsuite/gcc.dg/pragma-isr.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/pragma-isr.c b/gcc/testsuite/gcc.dg/pragma-isr.c
new file mode 100644 (file)
index 0000000..de16639
--- /dev/null
@@ -0,0 +1,17 @@
+/* { dg-do compile { target h8300-*-* sh-*-*} } */
+/* { dg-options "-O3" } */
+/* Test case will check whether rte is generated for two ISRs*/
+extern void foo();
+#pragma interrupt
+void  isr1(void)
+{
+               foo();
+}
+
+#pragma interrupt
+void  isr2(void)
+{
+               foo();
+}
+
+/* { dg-final { scan-assembler-times "rte" 2} } */