diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/crash29.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.brendan/crash29.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C new file mode 100755 index 0000000..72bbdc7 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C @@ -0,0 +1,19 @@ +// Build don't link: +// GROUPS passed old-abort + +union Value +{ + Value(){} +}; + +struct GlobalAddress +{ + GlobalAddress(Value *nvar){}// ERROR - .* +};// ERROR - candidates .* + +int +main() +{ + new GlobalAddress(Value()); // internal error occured here// ERROR - no matching function .* + //new GlobalAddress(new Value()); // This line is correct code +} |