]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/ice13921.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13921.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
4fail_compilation/ice13921.d(13): Error: undefined identifier `undefined_identifier`
5fee5ec3 5fail_compilation/ice13921.d(25): Error: template instance `ice13921.S!string` error instantiating
b4c522fa
IB
6---
7*/
8
9struct S(N)
10{
11 void fun()
12 {
13 undefined_identifier;
14 // or anything that makes the instantiation fail
15 }
16
17}
18
19void test(T)(S!T)
20{
21}
22
23void main()
24{
25 S!string g;
26 test(g);
27}