CAP/MiniC/TP03/tests/students/base/test_if_nonbool.c

17 lines
242 B
C
Raw Normal View History

2024-10-08 08:39:14 +02:00
#include "printlib.h"
int main() {
int x, y;
if (x) {
y = 5;
}
println_int(y);
return 0;
}
// SKIP TEST EXPECTED
// EXITCODE 2
// EXPECTED
// In function main: Line 6 col 2: invalid type for non boolean as condition: integer