This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix pr61077.c test


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  <polacek@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]