MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fix350b.d
blob8ec428f885452f8e42a7f4dee619c7d155fd6543
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fix350b.d(15): Error: comma expected separating field initializers
5 fail_compilation/fix350b.d(15): Error: comma expected separating field initializers
6 fail_compilation/fix350b.d(16): Error: comma expected separating field initializers
7 ---
8 */
9 int foo() { return 3; }
11 struct S2
13 int a, b, c;
15 static immutable S2 C1 = { foo() 2 3 }; // compiles (and works)
16 static immutable S2 C2 = { foo() 2, 3 }; // compiles (and works)
17 //static immutable S2 C3 = { 2 foo() 3 }; // does not compile: comma expected separating field initializers