summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/fntry1.C
blob: 9a5d993bee0298d710b021e483545e79450d6ab0 (plain)
1
2
3
4
5
6
7
8
9
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);
}