aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_ternary_operator.sh
blob: c63f58117916f4524616b6bbf6477385c8962783 (plain)
1
2
3
4
5
6
7
8
test_exit_code 0 <<'EOF'
#include "../../helpers.h"

int main() {
    ASSERT_EQ(2, 1 ? 2 : 3);
    ASSERT_EQ(5, 0 ? 4 : 5);
}
EOF