From: Neil Booth Date: Wed, 6 Dec 2000 20:14:32 +0000 (+0000) Subject: * gcc.dg/cpp/backslash2.c X-Git-Tag: prereleases/libstdc++-2.92~2421 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=176cb77883fca7b657f15ab289c7e679019739e1;p=thirdparty%2Fgcc.git * gcc.dg/cpp/backslash2.c From-SVN: r38073 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d3ca7efe2af3..7351a2f7f451 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-12-06 Neil Booth + + * gcc.dg/cpp/backslash2.c: New tests. + 2000-12-06 Kaveh R. Ghazi * 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 index 000000000000..65142d9309d0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/backslash2.c @@ -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 } */