re PR c/61077 (_Atomic in the return type or argument types of main not diagnosed)

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

From-SVN: r213084
This commit is contained in:
Marek Polacek 2014-07-26 16:33:19 +00:00 committed by Marek Polacek
parent 7b7f941a96
commit be97a9d038
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-07-26 Marek Polacek <polacek@redhat.com>
PR c/61077
* gcc.dg/pr61077.c: Use \[^\n\]* instead of .* in the regexp.
2014-07-26 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/sizeof_2.f90: Change dg-error.

View File

@ -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;
}