aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attr-tsafe1.C
blob: 20c319f154dce8aef6f442ae27e3eff6ef28956f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/108795

template <typename T> void g (T x)
{
  struct C
  {
    __attribute__((transaction_safe)) ~C();
  };
  C::~C();			// { dg-error "" }
}
void f ()
{
  g (5);
}