Add conversion to bool tests as conditionals

This commit is contained in:
Jason Turner 2016-10-26 12:29:30 -06:00
parent 508729ec77
commit 9f30d84f39

View File

@ -0,0 +1,17 @@
// all we care is that this executes, really
add_type_conversion(type("int"), type("bool"), fun(int i) { return i != 0; });
if (0) {
assert_true(false);
}
while (0) {
assert_true(false);
}
for (; 0; ) {
assert_true(false);
}