summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.eh/tmpl6.C
blob: d79e8ad29915184c6d3464bafb39752b792d87b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct S
{
  int i;
};

template <class T>
void f ()
{
  try {
  } catch (S& s) {
    s.i = 3;
  }
}

template void f<int>();