summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test6541.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test6541.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test6541.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test6541.d b/gcc/testsuite/gdc.test/compilable/test6541.d
new file mode 100644
index 00000000000..b4922159f61
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test6541.d
@@ -0,0 +1,10 @@
+class C
+{
+ static synchronized func(alias a)() {}
+}
+
+void main()
+{
+ int a;
+ C.func!a();
+}