From 9a2fbf6f4854b1f2cfd5979b91d5b3d7e183d487 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Sep 2025 19:03:48 +0900 Subject: test: merge test scripts --- tests/test_bool_type.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_bool_type.sh (limited to 'tests/test_bool_type.sh') diff --git a/tests/test_bool_type.sh b/tests/test_bool_type.sh new file mode 100644 index 0000000..16087bf --- /dev/null +++ b/tests/test_bool_type.sh @@ -0,0 +1,14 @@ +cat <<'EOF' > expected +1,0 +1,1,1 +EOF +test_diff <<'EOF' +int printf(const char*, ...); + +int main() { + bool b1 = true, b0 = false; + printf("%d,%d\n", b1, b0); + printf("%d,%d,%d\n", sizeof(b1), sizeof(b0), sizeof(bool)); +} +EOF + -- cgit v1.2.3-70-g09d2