summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test18584.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test18584.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test18584.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test18584.d b/gcc/testsuite/gdc.test/compilable/test18584.d
new file mode 100644
index 00000000000..e447cc265f4
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test18584.d
@@ -0,0 +1,11 @@
+// https://issues.dlang.org/show_bug.cgi?id=18584
+
+struct S {
+ int n;
+ auto fun() { return tmp!(a => n)(); }
+}
+
+struct tmp(alias fns) {
+ alias fun = fns!int;
+}
+