MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test24065.d
blob9e4ebbf4d16398fd57372f1109784a59bf22c467
1 // https://issues.dlang.org/show_bug.cgi?id=24065
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test24065.d(12): Error: string expected as argument of __traits `getTargetInfo` instead of `int`
7 fail_compilation/test24065.d(15): Error: string expected as argument of __traits `getTargetInfo` instead of `foo`
8 fail_compilation/test24065.d(18): Error: string expected as argument of __traits `getTargetInfo` instead of `e`
9 ---
12 auto s1 = __traits(getTargetInfo, int);
14 void foo() {}
15 auto s2 = __traits(getTargetInfo, foo);
17 enum e;
18 auto s3 = __traits(getTargetInfo, e);