aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/abi/guard3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/abi/guard3.C')
-rw-r--r--gcc-4.8.1/gcc/testsuite/g++.dg/abi/guard3.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/abi/guard3.C b/gcc-4.8.1/gcc/testsuite/g++.dg/abi/guard3.C
new file mode 100644
index 000000000..fd9d00e27
--- /dev/null
+++ b/gcc-4.8.1/gcc/testsuite/g++.dg/abi/guard3.C
@@ -0,0 +1,14 @@
+// PR c++/45603
+
+extern "C" int __cxa_guard_acquire();
+
+struct A
+{
+ ~A();
+};
+
+A* f()
+{
+ static A a;
+ return &a;
+}