* gcc.dg/cpp/assembl2.S: New test case.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Thu, 18 Jan 2001 06:34:18 +0000 (06:34 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 18 Jan 2001 06:34:18 +0000 (06:34 +0000)
From-SVN: r39109

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/assembl2.S [new file with mode: 0644]

index 229ef2159844f012a0de8fbbce5a2bd53fd0b455..ff295af42de7a5a0c3ed5be1d99170a1e9909447 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-18  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+        * gcc.dg/cpp/assembl2.S: New test case.
+
 2001-01-17  Jeffrey Oldham  <oldham@codesourcery.com>
 
        * gcc.dg/special/ecos.exp (wkali-2.c): Xfail if only weak aliases
diff --git a/gcc/testsuite/gcc.dg/cpp/assembl2.S b/gcc/testsuite/gcc.dg/cpp/assembl2.S
new file mode 100644 (file)
index 0000000..0cfad1f
--- /dev/null
@@ -0,0 +1,19 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc.  */
+
+/* { dg-do preprocess } */
+
+/* Source: Bug report of Jonathan Larmour.  Tweaked for test suite by
+   Neil Booth, 17 Jan 2000.  */
+
+/* We would not test the buffer->was_skipping variable when skipping,
+   meaning that some false directives confused CPP.  */
+
+#if 0
+        # foo
+        # fee
+        # fie
+        # foe
+        # fum
+#elif 0
+        # bundy
+#endif