summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test16183.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test16183.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test16183.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test16183.d b/gcc/testsuite/gdc.test/compilable/test16183.d
new file mode 100644
index 00000000000..ba741100ce6
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test16183.d
@@ -0,0 +1,7 @@
+// https://issues.dlang.org/show_bug.cgi?id=16183
+
+void main()
+{
+ const string g(const string s) { return s; }
+ enum string y = ['f'] ~ g("g");
+}