summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice19950.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/ice19950.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/ice19950.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/ice19950.d b/gcc/testsuite/gdc.test/fail_compilation/ice19950.d
new file mode 100644
index 00000000000..dc930d5aa8e
--- /dev/null
+++ b/gcc/testsuite/gdc.test/fail_compilation/ice19950.d
@@ -0,0 +1,13 @@
+/*
+TEST_OUTPUT:
+---
+fail_compilation/ice19950.d(8): Error: undefined identifier `NotHere`
+fail_compilation/ice19950.d(9): Error: template instance `ice19950.baz!()` does not match template declaration `baz()(Foo)`
+---
+*/
+alias Foo = NotHere;
+alias Bar = baz!();
+
+void baz()(Foo)
+ if (true)
+{}