MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag9250.d
blob177a05cf39638c71729e83e97adfd013448ab71c
1 // REQUIRED_ARGS: -m32
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/diag9250.d(19): Error: cannot implicitly convert expression `10u` of type `uint` to `Foo`
6 fail_compilation/diag9250.d(22): Error: cannot implicitly convert expression `10u` of type `uint` to `void*`
7 ---
8 */
10 struct Foo
12 ubyte u;
15 void main()
17 uint[10] bar;
19 Foo x = bar.length; // error here
21 void* y = bar.length ?
22 bar.length : // error here
23 bar.length;