Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash29.C
blob8b63c9f80368cb72da683ad6dd58d59b1726c353
1 // { dg-do assemble  }
2 // GROUPS passed old-abort
4 union Value
6         Value(){}
7 };
9 struct GlobalAddress            // { dg-message "note" }
11         GlobalAddress(Value *nvar){} // { dg-message "note" }
14 int
15 main()
17         new GlobalAddress(Value());             // internal error occured here// { dg-error "no matching" }
18         //new GlobalAddress(new Value());       // This line is correct code