OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / crash24.C
index 09e9788..9d6af1d 100644 (file)
@@ -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;
 }