aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_bool_type.sh
blob: d18fd30c4df38f11ee946476f7c7a5f2efaea955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
test_exit_code 0 <<'EOF'
#include "../../helpers.h"

int main() {
    bool b1 = true, b0 = false;
    ASSERT_EQ(1, b1);
    ASSERT_EQ(0, b0);
    ASSERT_EQ(1, sizeof(b1));
    ASSERT_EQ(1, sizeof(b0));
    ASSERT_EQ(1, sizeof(bool));
}
EOF