MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag13787.d
blob3a3a2c965b86d43fe5a9b94388b712126302aa3e
1 // REQUIRED_ARGS: -o-
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/diag13787.d(12): Error: cannot slice function pointer `& main`
6 fail_compilation/diag13787.d(13): Error: cannot index function pointer `& main`
7 ---
8 */
10 void main()
12 auto a = (&main)[0..1];
13 auto x = (&main)[0];