MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / noreturn_expr2.d
blobf5e0054823bb6364ac60ddb21404ed9aa1be3519
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/noreturn_expr2.d(8): Error: cannot cast `noreturn` to `int` at compile time
5 ---
6 */
8 enum E {e1 = 1, e2 = 2, illegal = noreturn}
10 void main()
12 E e;
13 e = E.illegal;