Debian Codegraph @

gcc/testsuite/g++.dg/tm/pr46653.C

raw
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm -O -fno-implicit-constexpr" }
3
4 class shared_count
5 {
6 public:
7 volatile int j;
8 shared_count() : j(0) { }
9 };
10
11 shared_count * c;
12 int main()
13 {
14 __transaction_atomic {
15 shared_count sc;
16 }
17 return 0;
18 }