blob: b3724cd46cff7c24902ed2878874d081861e6b75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
cat <<'EOF' > expected
42
123
EOF
test_diff <<'EOF'
int printf(const char*, ...);
int main() {
// TODO: check if "foo" is expanded to "foo" or not once '#' operator is implemented.
#define foo foo
int foo = 42;
printf("%d\n", foo);
// TODO: check if "a" is expanded to "a" or not once '#' operator is implemented.
#define a b
#define b c
#define c a
int a = 123;
printf("%d\n", a);
}
EOF
|