Debian Codegraph @

gcc/testsuite/g++.dg/ext/attr-tsafe1.C

raw
1 // PR c++/108795
2
3 template <typename T> void g (T x)
4 {
5 struct C
6 {
7 __attribute__((transaction_safe)) ~C();
8 };
9 C::~C(); // { dg-error "" }
10 }
11 void f ()
12 {
13 g (5);
14 }