Debian Codegraph @

gcc/testsuite/gdc.test/compilable/fix17335.d

raw
1 /*
2 * PERMUTE_ARGS:
3 */
4
5 // https://issues.dlang.org/show_bug.cgi?id=17335
6
7 bool alwaysFalse() { return false; }
8 void main()
9 {
10 static if (false && a == 1)
11 {
12 }
13 static if ("a" == "b" && b == 1)
14 {
15 }
16 static if (alwaysFalse() && c == 1)
17 {
18 }
19 static if (!alwaysFalse() || d == 1)
20 {
21 }
22 static if (alwaysFalse() ? e == 1 : 1)
23 {
24 }
25 static if (!alwaysFalse() ? 1 : f == 1)
26 {
27 }
28 }