summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test18474.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test18474.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test18474.d15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test18474.d b/gcc/testsuite/gdc.test/compilable/test18474.d
new file mode 100644
index 00000000000..454e9c507f3
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test18474.d
@@ -0,0 +1,15 @@
+shared struct A
+{
+ this(this);
+}
+
+struct B
+{
+ A a;
+}
+
+void main()
+{
+ shared B b1;
+ auto b2 = b1;
+}