Marc reported that using .* regexp can cause spurious fails, so
fixed by using \[^\n\]* instead.

Tested on x86_64-linux, applying to trunk.

2014-07-26  Marek Polacek  <pola...@redhat.com>

        * gcc.dg/pr61077.c: Use \[^\n\]* instead of .* in the regexp.

diff --git gcc/testsuite/gcc.dg/pr61077.c gcc/testsuite/gcc.dg/pr61077.c
index c0513f7..e29f23c 100644
--- gcc/testsuite/gcc.dg/pr61077.c
+++ gcc/testsuite/gcc.dg/pr61077.c
@@ -5,8 +5,8 @@
 _Atomic int
 main (_Atomic int argc, _Atomic char **argv)
 /* { dg-warning "qualified return type" "return" { target *-*-* } 6 } */
-/* { dg-warning "qualified parameter type.*int" "parameter" { target *-*-* } 6 
} */
-/* { dg-warning "qualified parameter type.*char" "parameter" { target *-*-* } 
6 } */
+/* { dg-warning "qualified parameter type\[^\n\]*int" "parameter" { target 
*-*-* } 6 } */
+/* { dg-warning "qualified parameter type\[^\n\]*char" "parameter" { target 
*-*-* } 6 } */
 {
   return 0;
 }

        Marek

Reply via email to