aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/diag19225.d
blob: bbb825159f268e2286a00df4b439a74c7cb57fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
TEST_OUTPUT:
---
fail_compilation/diag19225.d(14): Error: basic type expected, not `else`
fail_compilation/diag19225.d(14):        There's no `static else`, use `else` instead.
fail_compilation/diag19225.d(14): Error: found `else` without a corresponding `if`, `version` or `debug` statement
fail_compilation/diag19225.d(15): Error: unrecognized declaration
---
*/

void main()
{
    static if (true) {}
    static else {}
}