xref: /llvm-project/clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h (revision 0b7fc15e7035276e2f8a778ebe15f4cad9007c99)
181450dffSJohn Thompson // Set up so TypeInt only defined during InconsistentHeader1.h include.
281450dffSJohn Thompson #ifdef SYMBOL1
381450dffSJohn Thompson #define SYMBOL 1
4*ce117b07SJohn Thompson #define FUNC_STYLE(a, b) a||b
581450dffSJohn Thompson #endif
681450dffSJohn Thompson #ifdef SYMBOL2
781450dffSJohn Thompson #define SYMBOL 2
8*ce117b07SJohn Thompson #define FUNC_STYLE(a, b) a&&b
981450dffSJohn Thompson #endif
1081450dffSJohn Thompson 
1181450dffSJohn Thompson #if SYMBOL == 1
1281450dffSJohn Thompson typedef int TypeInt;
1381450dffSJohn Thompson #endif
14*ce117b07SJohn Thompson 
15*ce117b07SJohn Thompson int var = FUNC_STYLE(1, 0);
16*ce117b07SJohn Thompson 
17*ce117b07SJohn Thompson #if defined(SYMBOL1)
18*ce117b07SJohn Thompson #endif
19