FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash29.C
blobb6af6a4d9113c816363396f86496d64648795f56
1 // Build don't link: 
2 // GROUPS passed old-abort
4 union Value
6         Value(){}
7 };
9 struct GlobalAddress
10 {// ERROR -  candidates .*
11         GlobalAddress(Value *nvar){}// ERROR - .*
14 int
15 main()
17         new GlobalAddress(Value());             // internal error occured here// ERROR -  no matching function .*
18         //new GlobalAddress(new Value());       // This line is correct code