re PR testsuite/35647 (FAIL: gcc.dg/cpp/cmdlne-d(I|M)-M.c scan-file (^|\\n)cmdlne...
authorAndreas Schwab <schwab@suse.de>
Thu, 20 Mar 2008 13:31:25 +0000 (13:31 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Thu, 20 Mar 2008 13:31:25 +0000 (13:31 +0000)
PR testsuite/35647
* gcc.dg/cpp/cmdlne-dI-M.c: Match optional continuation.
* gcc.dg/cpp/cmdlne-dM-M.c: Likewise.
* gcc.dg/cpp/cmdlne-dN-M.c: Match correct file name and optional
continuation and remove xfail.

From-SVN: r133373

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/cmdlne-dI-M.c
gcc/testsuite/gcc.dg/cpp/cmdlne-dM-M.c
gcc/testsuite/gcc.dg/cpp/cmdlne-dN-M.c

index 52482aa80966acebc06780488c23c6fe0778586d..c140d1e5e29879a9eaf1d19da5333ccb950177c0 100644 (file)
@@ -1,3 +1,11 @@
+2008-03-20  Andreas Schwab  <schwab@suse.de>
+
+       PR testsuite/35647
+       * gcc.dg/cpp/cmdlne-dI-M.c: Match optional continuation.
+       * gcc.dg/cpp/cmdlne-dM-M.c: Likewise.
+       * gcc.dg/cpp/cmdlne-dN-M.c: Match correct file name and optional
+       continuation and remove xfail.
+
 2008-03-20  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR libfortran/32972
index a30b4bc12db8016440e29a41be73f2cc0965d3bc..db08a72b4b1f4f1436b2e05a64a86603aae1d3e9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.  */
+/* Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc.  */
 
 /* { dg-do preprocess } */
 /* { dg-options "-dI -M" } */
@@ -13,4 +13,4 @@ int variable;
 
 /* { dg-final { scan-file-not cmdlne-dI-M.i "(^|\\n)#define foo bar($|\\n)" } }
    { dg-final { scan-file-not cmdlne-dI-M.i "variable" } }
-   { dg-final { scan-file cmdlne-dI-M.i "(^|\\n)cmdlne-dI-M.*:\[^\\n\]*cmdlne-dI-M.c" } } */
+   { dg-final { scan-file cmdlne-dI-M.i "(^|\\n)cmdlne-dI-M\[^\\n\]*:( *\\\\\\n)?\[^\\n\]*cmdlne-dI-M.c" } } */
index 193168e940f5188dfceb4217c19c3bd57de613d5..0cd9011042a3f1827c8f91e436a8c39b0b95d9d7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.  */
+/* Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc.  */
 
 /* { dg-do preprocess } */
 /* { dg-options "-dM -M" } */
@@ -12,4 +12,4 @@ int variable;
 
 /* { dg-final { scan-file cmdlne-dM-M.i "(^|\\n)#define foo bar($|\\n)" } }
    { dg-final { scan-file-not cmdlne-dM-M.i "variable" } }
-   { dg-final { scan-file cmdlne-dM-M.i "(^|\\n)cmdlne-dM-M\[^\\n\]*:\[^\\n\]*cmdlne-dM-M.c"} } */
+   { dg-final { scan-file cmdlne-dM-M.i "(^|\\n)cmdlne-dM-M\[^\\n\]*:( *\\\\\\n)?\[^\\n\]*cmdlne-dM-M.c"} } */
index 7d8c16b1c95f79d3265914f92a77d0ede66ff485..2182e370cc2eba66dc15277b964b9ef6b557936c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.  */
+/* Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc.  */
 
 /* { dg-do preprocess } */
 /* { dg-options "-dN -M" } */
@@ -12,4 +12,4 @@ int variable;
 
 /* { dg-final { scan-file-not cmdlne-dN-M.i "(^|\\n)#define foo" } }
    { dg-final { scan-file-not cmdlne-dN-M.i "variable" } }
-   { dg-final { scan-file cmdlne-dN-M.i "(^|\\n)cmdlne-dM-M\[^\\n\]*:\[^\\n\]*cmdlne-dM-M.c" { xfail *-*-* } } } */
+   { dg-final { scan-file cmdlne-dN-M.i "(^|\\n)cmdlne-dN-M\[^\\n\]*:( *\\\\\\n)?\[^\\n\]*cmdlne-dN-M.c" } } */