diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash53.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash53.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash53.C b/gcc/testsuite/g++.old-deja/g++.pt/crash53.C new file mode 100644 index 000000000..909b86689 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash53.C @@ -0,0 +1,16 @@ +// { dg-do assemble } +// Origin: Mark Mitchell <mark@codesourcery.com> + +struct S +{ +}; + +S g (); + +template <class T> +void f () +{ + const S& s = g (); +} + +template void f<int>(); |