]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 9 Jan 2003 13:18:46 +0000 (13:18 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 9 Jan 2003 13:18:46 +0000 (13:18 +0000)
'gcc-3_2-branch'.

From-SVN: r61107

gcc/testsuite/gcc.dg/old-style-asm-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/old-style-asm-1.c b/gcc/testsuite/gcc.dg/old-style-asm-1.c
new file mode 100644 (file)
index 0000000..006cf09
--- /dev/null
@@ -0,0 +1,19 @@
+/* PR inline-asm/8832 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+/* Verify that GCC doesn't optimize
+   old style asm instructions.  */
+
+void foo(int v)
+{
+  if (v)
+    asm ("dummy1");
+
+  asm ("dummy2");
+
+  if (v)
+    asm ("dummy3");
+}
+
+/* { dg-final { scan-assembler "L2" } } */