Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail308.d

raw
1 // REQUIRED_ARGS: -unittest
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail308.d(18): Error: template instance `object.RTInfo!(TestType)` recursive expansion
6 ---
7 */
8
9 void main()
10 {
11 MinHeap!(int) foo = new MinHeap!(int)();
12 }
13
14 class MinHeap(NodeType)
15 {
16 unittest
17 {
18 struct TestType {}
19 MinHeap!(TestType) foo;
20 }
21 }