summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tm/pr47554.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/tm/pr47554.C')
-rw-r--r--gcc/testsuite/g++.dg/tm/pr47554.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/tm/pr47554.C b/gcc/testsuite/g++.dg/tm/pr47554.C
index 28841bb15ad..41222dcc47f 100644
--- a/gcc/testsuite/g++.dg/tm/pr47554.C
+++ b/gcc/testsuite/g++.dg/tm/pr47554.C
@@ -11,6 +11,8 @@ class list
}
const list& _M_get_Node_allocator() const
{
+ static list l;
+ return l;
}
list _M_get_Tp_allocator() const
{