Debian Codegraph @

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

raw
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm" }
3
4 class list
5 {
6 public: list()
7 {
8 }
9 list(const list&)
10 {
11 }
12 const list& _M_get_Node_allocator() const
13 {
14 static list l;
15 return l;
16 }
17 list _M_get_Tp_allocator() const
18 {
19 return list(_M_get_Node_allocator());
20 }
21 };
22 static list buildProjects;
23 static void build()
24 {
25 __transaction_relaxed
26 {
27 buildProjects._M_get_Tp_allocator();
28 }
29 }