Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/fntry1.C

raw
1 // { dg-do run }
2 // Bug: g++ silently ignores function-try-blocks in templates.
3 // Submitted by Jason Merrill <[email protected]>
4
5 template <class T> void f (T) try { throw 1; } catch (...) { }
6
7 int main ()
8 {
9 f (1);
10 }