diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/fntry1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/fntry1.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/fntry1.C b/gcc/testsuite/g++.old-deja/g++.pt/fntry1.C new file mode 100644 index 000000000..9a5d993be --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/fntry1.C @@ -0,0 +1,10 @@ +// { dg-do run } +// Bug: g++ silently ignores function-try-blocks in templates. +// Submitted by Jason Merrill <jason@cygnus.com> + +template <class T> void f (T) try { throw 1; } catch (...) { } + +int main () +{ + f (1); +} |