OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash29.C
1 // { dg-do assemble  }
2 // GROUPS passed old-abort
3
4 union Value
5 {
6         Value(){}
7 };
8
9 struct GlobalAddress
10 {// { dg-error "" }  candidates .*
11         GlobalAddress(Value *nvar){}// { dg-error "" } .*
12 };
13
14 int
15 main()
16 {
17         new GlobalAddress(Value());             // internal error occured here// { dg-error "" }  no matching function .*
18         //new GlobalAddress(new Value());       // This line is correct code
19 }