aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_ternary_operator.sh
blob: c98ff43862cd22012095e50dbf8324624aaa0e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
cat <<'EOF' > expected
2 5
EOF

test_diff <<'EOF'
int printf();

int main() {
    printf("%d %d\n", 1 ? 2 : 3, 0 ? 4 : 5);
}
EOF