annotate clang/test/Preprocessor/macro_rescan2.c @ 237:c80f45b162ad llvm-original

add some fix
author kono
date Wed, 09 Nov 2022 17:47:54 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -E | grep 'a: 2\*f(9)'
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 %s -E | grep 'b: 2\*9\*g'
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 #define f(a) a*g
anatofuz
parents:
diff changeset
5 #define g f
anatofuz
parents:
diff changeset
6 a: f(2)(9)
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 #undef f
anatofuz
parents:
diff changeset
9 #undef g
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 #define f(a) a*g
anatofuz
parents:
diff changeset
12 #define g(a) f(a)
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 b: f(2)(9)
anatofuz
parents:
diff changeset
15