summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice18469.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/ice18469.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/ice18469.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/ice18469.d b/gcc/testsuite/gdc.test/fail_compilation/ice18469.d
new file mode 100644
index 00000000000..8803956f6c5
--- /dev/null
+++ b/gcc/testsuite/gdc.test/fail_compilation/ice18469.d
@@ -0,0 +1,13 @@
+/*
+TEST_OUTPUT:
+---
+fail_compilation/ice18469.d(10): Error: no property `opCall` for type `void`
+---
+*/
+class Bar
+{
+ ~this(){}
+ this(){alias T = typeof(Bar.__dtor.opCall);}
+}
+
+void main() {}