MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail336.d
blob9df207120b364c78b7e820e3b91aa6768dca62d7
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail336.d(16): Error: struct `S` has constructors, cannot use `{ initializers }`, use `S( initializers )` instead
5 ---
6 */
8 // https://issues.dlang.org/show_bug.cgi?id=3476
9 // C-style initializer for structs must be disallowed for structs with a constructor
10 struct S
12 int a;
13 this(int) {}
16 S s = { 1 };