clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h
raw| 1 | // Set up so TypeInt only defined during InconsistentHeader1.h include. |
| 2 | #ifdef SYMBOL1 |
| 3 | #define SYMBOL 1 |
| 4 | #define FUNC_STYLE(a, b) a||b |
| 5 | #endif |
| 6 | #ifdef SYMBOL2 |
| 7 | #define SYMBOL 2 |
| 8 | #define FUNC_STYLE(a, b) a&&b |
| 9 | #endif |
| 10 | |
| 11 | #if SYMBOL == 1 |
| 12 | typedef int TypeInt; |
| 13 | #endif |
| 14 | |
| 15 | int var = FUNC_STYLE(1, 0); |
| 16 | |
| 17 | #if defined(SYMBOL1) |
| 18 | #endif |