aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-07-26 16:33:19 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-07-26 16:33:19 +0000
commitbe97a9d0382ca54027b42b70faa8a0509f8d9eb9 (patch)
treefa6bd91271d62faac9281a248d942b043be9c4ca /gcc
parent7b7f941a9689d3bc30bec63f3fed7c698584e1ce (diff)
downloadgcc-be97a9d0382ca54027b42b70faa8a0509f8d9eb9.zip
gcc-be97a9d0382ca54027b42b70faa8a0509f8d9eb9.tar.gz
gcc-be97a9d0382ca54027b42b70faa8a0509f8d9eb9.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/pr61077.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e007f31..9575f07 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/pr61077.c b/gcc/testsuite/gcc.dg/pr61077.c
index c0513f7..e29f23c 100644
--- a/gcc/testsuite/gcc.dg/pr61077.c
+++ b/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;
}