OSDN Git Service

gcc/cp/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash29.C
index b6af6a4..38c9d49 100644 (file)
@@ -1,4 +1,4 @@
-// Build don't link: 
+// { dg-do assemble  }
 // GROUPS passed old-abort
 
 union Value
@@ -6,14 +6,15 @@ union Value
        Value(){}
 };
 
-struct GlobalAddress
-{// ERROR -  candidates .*
-       GlobalAddress(Value *nvar){}// ERROR - .*
+struct GlobalAddress           // { dg-message "note" }
+{
+       GlobalAddress(Value *nvar){} // { dg-message "note" }
 };
 
 int
 main()
 {
-       new GlobalAddress(Value());             // internal error occured here// ERROR -  no matching function .*
+       new GlobalAddress(Value());             // internal error occured here// { dg-error "no matching" }
+       // { dg-message "candidate" "candidate note" { target *-*-* } 17 }
        //new GlobalAddress(new Value());       // This line is correct code
 }