diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/crash9.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/crash9.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/crash9.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/crash9.C new file mode 100755 index 0000000..297b8ac --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/crash9.C @@ -0,0 +1,11 @@ +// Build don't link: + +template <class T> +void f(T) {} // ERROR - parameter has incomplete type + +class C; + +void g(const C& c) +{ + f(c); // ERROR - invalid use of undefined type +} |