summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test19746.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test19746.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test19746.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test19746.d b/gcc/testsuite/gdc.test/compilable/test19746.d
new file mode 100644
index 00000000000..28677b09e73
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test19746.d
@@ -0,0 +1,16 @@
+// REQUIRED_ARGS: -Icompilable/imports
+// EXTRA_FILES: imports/test19746a.d imports/test19746b.d imports/test19746c.d imports/test19746d.d
+import test19746c;
+import test19746b: Frop;
+
+template Base(T)
+{
+ static if (is(T == super)) alias Base = Object;
+}
+
+class Foo
+{
+ class Nested: Base!Foo { }
+ void func(Frop) { }
+ void thunk() { }
+}