MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail18236.d
blob5a696f38a4ff827124939dd20dda62ead2b85587
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail18236.d(20): Error: cannot cast expression `V(12)` of type `V` to `int`
5 ---
6 */
8 struct V
10 int a;
13 struct S
15 enum A = V(12);
18 void main()
20 int b = cast(int)S.A;