]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.dg/cpp/tr-warn1.c: Add tests.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Wed, 31 Jan 2001 07:57:12 +0000 (07:57 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 31 Jan 2001 07:57:12 +0000 (07:57 +0000)
From-SVN: r39369

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/tr-warn1.c

index c865b936d4c7703e3f06c5c62b3a53deb6a93711..3cb1be4d249e37b295c5ffb264459bd8dc30de53 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-31  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+        * gcc.dg/cpp/tr-warn1.c: Add tests.
+
 2001-01-31  Neil Booth  <neil@daikokuya.demon.co.uk>
 
         * gcc.dg/cpp/avoidpaste1.c: Update.
index 2a818309c63020e6308c4111f4b7073af7bdd7c6..259f928825359615c7e5072606f349502b1a4ae7 100644 (file)
  #assert baz(quux)     /* { dg-bogus "indented" "^ #ext"     } */
  # assert quux(weeble) /* { dg-bogus "indented" "^ # ext"    } */
 
+/* We warn of #elif regardless of whether we're skipping or not, and
+   do not warn about indentaion.  */
+#if 0
+#if 1
+#elif 1                        /* { dg-warning "#elif" "#elif skipping" }  */
+#endif
+#elif 0                        /* { dg-warning "#elif" "#elif not skipping" }  */
+#endif
+
 /* { dg-warning "GCC extension" "extension warning" { target *-*-* } 22 } */
 /* { dg-warning "GCC extension" "extension warning" { target *-*-* } 23 } */
 /* { dg-warning "GCC extension" "extension warning" { target *-*-* } 24 } */