summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice19762.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/ice19762.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/ice19762.d17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/ice19762.d b/gcc/testsuite/gdc.test/fail_compilation/ice19762.d
new file mode 100644
index 00000000000..a484327426b
--- /dev/null
+++ b/gcc/testsuite/gdc.test/fail_compilation/ice19762.d
@@ -0,0 +1,17 @@
+// EXTRA_FILES: imports/b19762.d imports/c19762.d
+// PERMUTE_ARGS: -g
+
+/*
+TEST_OUTPUT:
+---
+fail_compilation/ice19762.d(13): Error: struct `ice19762.X` had semantic errors when compiling
+---
+*/
+
+module ice19762;
+
+struct X
+{
+ import imports.b19762 : Baz;
+ Err err;
+}