Debian Codegraph @

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

raw
1 /*
2 REQUIRED_ARGS: -unittest
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test20324.d(16): Error: argument `Test()` to __traits(getUnitTests) must be a module or aggregate, not a template
6 fail_compilation/test20324.d(16): while evaluating `pragma(msg, __traits(getUnitTests, Test))`
7 ---
8 */
9 // https://issues.dlang.org/show_bug.cgi?id=20324
10
11 template Test() {
12 unittest {
13 }
14 }
15
16 pragma(msg, __traits(getUnitTests, Test));