blob: 8b63c9f80368cb72da683ad6dd58d59b1726c353 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed old-abort
union Value
{
Value(){}
};
struct GlobalAddress // { dg-message "note" }
{
GlobalAddress(Value *nvar){} // { dg-message "note" }
};
int
main()
{
new GlobalAddress(Value()); // internal error occured here// { dg-error "no matching" }
//new GlobalAddress(new Value()); // This line is correct code
}