summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h
blob: f87ea6552954c544eab9e12bc32d5894f6bb3909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Set up so TypeInt only defined during InconsistentHeader1.h include.
#ifdef SYMBOL1
#define SYMBOL 1
#define FUNC_STYLE(a, b) a||b
#endif
#ifdef SYMBOL2
#define SYMBOL 2
#define FUNC_STYLE(a, b) a&&b
#endif

#if SYMBOL == 1
typedef int TypeInt;
#endif

int var = FUNC_STYLE(1, 0);

#if defined(SYMBOL1)
#endif
OpenPOWER on IntegriCloud