X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fcrash24.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fcrash24.C;h=9d6af1dfe879318dd522138ef4246da6badf3e9c;hb=7ad4a8fcd7624fa83956a5defbe1f631566de2d8;hp=09e9788e26f8b100ee011257f6e36caffa4ece58;hpb=e448e6a4c18cb11909266527821dfa927b87b7cd;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash24.C b/gcc/testsuite/g++.old-deja/g++.other/crash24.C index 09e9788e26f..9d6af1dfe87 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/crash24.C +++ b/gcc/testsuite/g++.old-deja/g++.other/crash24.C @@ -7,11 +7,12 @@ class foo { friend class __iterator; typedef __iterator const_iterator; virtual ~foo() { } - __iterator begin(); // { dg-error "" } + __iterator begin(); // { dg-message "candidates" } }; static void iteratorTest(const foo &x) { - foo::const_iterator i = x.begin(); // { dg-error "" } + foo::const_iterator i = x.begin(); // { dg-error "incomplete type" "incomplete type" } + // { dg-error "no matching" "no matching" { target *-*-* } 14 } for (; i; ++i) *i; }