summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/b20780.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/b20780.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/b20780.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/b20780.d b/gcc/testsuite/gdc.test/compilable/b20780.d
new file mode 100644
index 00000000000..366a2d9d1e0
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/b20780.d
@@ -0,0 +1,13 @@
+void main()
+{
+ struct A;
+ struct B { struct CD;}
+ alias V = void;
+ alias I = int;
+ V test0(@A I) {}
+ V test1(@A I p) {}
+ V test2(@A @(B) I) {}
+ V test3(@(B.CD) @B I) {}
+ V test4(@A I, @B @A I) {}
+ V test5(@A I p, @(B.CD) @A I ) {}
+}