MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test19176.d
blobceceb74c9cba20b61084cac712c2e67bc7575f4c
1 /*
2 REQUIRED_ARGS: -unittest
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test19176.d(13): Error: argument `foo()` to __traits(getUnitTests) must be a module or aggregate, not a template
6 ---
7 */
9 // https://issues.dlang.org/show_bug.cgi?id=19176
11 void main()
13 __traits(getUnitTests, foo);
16 template foo()
18 static if(true)
20 enum bar;
22 else
24 enum bar;