MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail13601.d
blob51291f4dc1bb7a6cf44891eabc986d7d1caacaaf
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail13601.d(13): Error: variable `__ctfe` cannot be read at compile time
5 fail_compilation/fail13601.d(14): Error: variable `__ctfe` cannot be read at compile time
6 fail_compilation/fail13601.d(15): Error: variable `__ctfe` cannot be read at compile time
7 fail_compilation/fail13601.d(16): Error: variable `__ctfe` cannot be read at compile time
8 ---
9 */
11 void test()
13 static if (__ctfe) {}
14 enum a = __ctfe ? "a" : "b";
15 static int b = __ctfe * 2;
16 int[__ctfe] sarr;