blob: eef924980f3bb276b1b06d98f6faa5f7a84f6a9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
if (0 || 0) "nok1" else "ok1"
if (1 || 0) "ok2" else "nok2"
if (0 || 1) "ok3" else "nok3"
if (1 || 1) "ok4" else "nok4"
print "\n"
define f() {
"f";
return 0
}
define g() {
"g";
return 0
}
define h() {
"h";
return 1
}
if (f() || g() || h()) "ok5" else "nok5"
if (f() || g() || !h()) "nok6" else "ok6"
if (f() || !h() || g()) "nok7" else "ok7"
print "\n"
|