From: Jason Merrill Date: Thu, 26 Aug 1999 02:25:45 +0000 (-0400) Subject: new X-Git-Tag: prereleases/libstdc++-2.92~11024 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b06167fcc48be5a7b709cc031b5f6ab29c2c6d33;p=thirdparty%2Fgcc.git new From-SVN: r28887 --- 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 000000000000..17075c514c52 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/fntry1.C @@ -0,0 +1,9 @@ +// Bug: g++ silently ignores function-try-blocks in templates. +// Submitted by Jason Merrill + +template void f (T) try { throw 1; } catch (...) { } + +int main () +{ + f (1); +}