annotate clang/test/Preprocessor/pp-record.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +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 -fsyntax-only -detailed-preprocessing-record %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // http://llvm.org/PR11120
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 #define STRINGIZE(text) STRINGIZE_I(text)
anatofuz
parents:
diff changeset
6 #define STRINGIZE_I(text) #text
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 #define INC pp-record.h
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 #include STRINGIZE(INC)
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 CAKE;
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 #define DIR 1
anatofuz
parents:
diff changeset
15 #define FNM(x) x
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 FNM(
anatofuz
parents:
diff changeset
18 #if DIR
anatofuz
parents:
diff changeset
19 int a;
anatofuz
parents:
diff changeset
20 #else
anatofuz
parents:
diff changeset
21 int b;
anatofuz
parents:
diff changeset
22 #endif
anatofuz
parents:
diff changeset
23 )
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 #define M1 c
anatofuz
parents:
diff changeset
26 #define M2 int
anatofuz
parents:
diff changeset
27 #define FM2(x,y) y x
anatofuz
parents:
diff changeset
28 FM2(M1, M2);
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 #define FM3(x) x
anatofuz
parents:
diff changeset
31 FM3(
anatofuz
parents:
diff changeset
32 #define M3 int x2
anatofuz
parents:
diff changeset
33 )
anatofuz
parents:
diff changeset
34 M3;