MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice1144.d
blobcd6486436ea7f2376f93731292beaa3ece7dc890
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice1144.d(14): Error: undefined identifier `a`
5 fail_compilation/ice1144.d(23): Error: template instance `ice1144.testHelper!("hello", "world")` error instantiating
6 ---
7 */
9 // https://issues.dlang.org/show_bug.cgi?id=1144
10 // ICE(template.c) template mixin causes DMD crash
11 char[] testHelper(A ...)()
13 char[] result;
14 foreach (t; a)
16 result ~= "int " ~ t ~ ";\n";
18 return result;
21 void main()
23 mixin(testHelper!("hello", "world")());