blob: f501b07622dc6f50e461380a070fd1a8441c0cbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/// This is the bool runtime testcase. It checks that the C++ bool type works.
module bools_runme;
import bools.bools;
void main() {
bool t = true;
bool f = false;
check_bo(f);
check_bo(t);
}
void check_bo(bool input) {
for (int i = 0; i < 1000; ++i) {
if (bo(input) != input) {
throw new Exception("Runtime test check_bo failed.");
}
}
}
|