summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/issue21662.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/issue21662.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/issue21662.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/issue21662.d b/gcc/testsuite/gdc.test/compilable/issue21662.d
new file mode 100644
index 00000000000..bb2e7412e36
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/issue21662.d
@@ -0,0 +1,4 @@
+struct S { @disable this(); }
+extern __gshared S a;
+extern S[2] b;
+void main() {}