summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib37.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/attrib37.C')
-rw-r--r--gcc/testsuite/g++.dg/ext/attrib37.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/attrib37.C b/gcc/testsuite/g++.dg/ext/attrib37.C
new file mode 100644
index 000000000..d12c176af
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ext/attrib37.C
@@ -0,0 +1,14 @@
+// PR c++/43093
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
+
+struct S {
+ int x;
+ S(const S &s) {}
+};
+
+S __attribute__((__stdcall__)) getS();
+
+void test()
+{
+ S s = getS();
+}