blob: 7dab53b7577a60cff5511b13681db2893fd82384 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
cat <<'EOF' > expected
123
EOF
test_diff <<'EOF'
#define A(x) x
int printf();
int main() {
printf("%d\n", A ( 123 ));
}
EOF
cat <<'EOF' > expected
main.c:4: expected ')', but got '<new-line>'
EOF
test_compile_error <<'EOF'
#define A(x) x
int main() {
#if A (
123) < A(345)
printf("1\n");
#endif
}
EOF
|