summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test20367.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test20367.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test20367.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test20367.d b/gcc/testsuite/gdc.test/compilable/test20367.d
new file mode 100644
index 00000000000..ebdf9ee5b8d
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test20367.d
@@ -0,0 +1,14 @@
+// https://issues.dlang.org/show_bug.cgi?id=20367
+
+struct A
+{
+ int x;
+ this(ref return scope A rhs) {}
+ @disable this(this) {}
+}
+
+void main()
+{
+ A a;
+ A b = a; // copy constructor gets called
+}