]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.dg/cpp/backslash2.c
authorNeil Booth <neilb@earthling.net>
Wed, 6 Dec 2000 20:14:32 +0000 (20:14 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 6 Dec 2000 20:14:32 +0000 (20:14 +0000)
From-SVN: r38073

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/backslash2.c [new file with mode: 0644]

index d3ca7efe2af320e5f6952857d5b3c9cdd098aa74..7351a2f7f4512e512b5cd3448f4788e6f27f0ead 100644 (file)
@@ -1,3 +1,7 @@
+2000-12-06  Neil Booth  <neilb@earthling.net>
+
+       * gcc.dg/cpp/backslash2.c: New tests.
+
 2000-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * testsuite/gcc.c-torture/execute/stdio-opt-1.c: Add more checks.
diff --git a/gcc/testsuite/gcc.dg/cpp/backslash2.c b/gcc/testsuite/gcc.dg/cpp/backslash2.c
new file mode 100644 (file)
index 0000000..65142d9
--- /dev/null
@@ -0,0 +1,14 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc.  */
+
+/* { dg-do preprocess } */
+
+/* Test warnings for backslash-space-newline.
+   Source: Neil Booth. 6 Dec 2000.  */
+
+foo \  
+bar
+/* { dg-warning "separated by space" "" { target *-*-* } 8 } */
+
+/* foo \   
+   bar */
+/* { dg-bogus "separated by space" "" { target *-*-* } 12 } */