d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fnconstraint.d
blob21603f725f66f5761405e07c11ef85aea6ede31d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fnconstraint.d(14): Error: template constraint must follow parameter lists and attributes
5 fail_compilation/fnconstraint.d(14): Error: declaration expected, not `if`
6 fail_compilation/fnconstraint.d(23): Error: template constraint must follow parameter lists and attributes
7 fail_compilation/fnconstraint.d(23): Error: declaration expected, not `if`
8 fail_compilation/fnconstraint.d(27): Error: `}` expected following members in `struct` declaration
9 fail_compilation/fnconstraint.d(19): struct `S` starts here
10 ---
12 void foo()()
13 in(true)
14 if (true)
17 alias f = foo!();
19 struct S
21 this()()
22 if (true)
23 if (true) {}
26 S s;