summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law
diff options
context:
space:
mode:
authorFabien Chêne <fabien@gcc.gnu.org>2014-04-04 10:03:19 +0200
committerFabien Chêne <fabien@gcc.gnu.org>2014-04-04 10:03:19 +0200
commitd4a69ff4cc73c73c6bb9fe85c08f245f8e7e8f18 (patch)
tree1f45f582301ad9b8c2cd02fe14457df7325c5526 /gcc/testsuite/g++.old-deja/g++.law
parent2d18d29532a35c3eb0fafa54fec9f654974c9b5c (diff)
downloadgcc-d4a69ff4cc73c73c6bb9fe85c08f245f8e7e8f18.tar.gz
decl.c (duplicate_decls): Check for the return of permerror before emitting a note.
2014-04-04 Fabien Chêne <fabien@gcc.gnu.org> * decl.c (duplicate_decls): Check for the return of permerror before emitting a note. 2014-04-04 Fabien Chêne <fabien@gcc.gnu.org> * g++.old-deja/g++.robertl/eb121.C: Adjust. * g++.old-deja/g++.jason/overload21.C: Likewise. * g++.old-deja/g++.law/init5.C: Likewise. From-SVN: r209071
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/init5.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/init5.C b/gcc/testsuite/g++.old-deja/g++.law/init5.C
index c1d647b1b05..7ed89e21924 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/init5.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/init5.C
@@ -11,8 +11,8 @@ extern int fred( int);
class X {
public :
- void f( int = fred( 0) ) ; // { dg-error "" } previous spec
+ void f( int = fred( 0) ) ; // { dg-message "previous spec" }
} ;
-void X::f( int x = fred( 0) ) {// { dg-error "" } .*
+void X::f( int x = fred( 0) ) { // { dg-error "default argument" }
}