diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/crash8.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/crash8.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/crash8.C b/gcc/testsuite/g++.old-deja/g++.jason/crash8.C new file mode 100644 index 00000000000..4482a43f4bc --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/crash8.C @@ -0,0 +1,9 @@ +struct A { + A(); + A(A); // ERROR - copy ctor must take reference +}; +main() +{ + A a; + A b(a); // causes compiler segfault +} |