summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/pp-record.c
blob: dd958d0e56d1966b2bf8fd5ef0b55b8e2320ebe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: %clang_cc1 -fsyntax-only -detailed-preprocessing-record %s

// http://llvm.org/PR11120

#define STRINGIZE(text) STRINGIZE_I(text)
#define STRINGIZE_I(text) #text

#define INC pp-record.h

#include STRINGIZE(INC)

CAKE;

#define DIR 1
#define FNM(x) x

FNM(
#if DIR
    int a;
#else
    int b;
#endif
)
OpenPOWER on IntegriCloud