submodule macro overriding within the same top-level module (necessary for the testcase to be remotely reasonable). Incidentally reduces the number of libc++ testsuite regressions with modules enabled from 7 to 6. llvm-svn: 203063
25 lines
388 B
C
25 lines
388 B
C
#define TOP unsigned int
|
|
|
|
#define TOP_LEFT_UNDEF 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define TOP_RIGHT_REDEF float
|
|
// The last definition will be exported from the sub-module.
|
|
#define TOP_RIGHT_REDEF int
|
|
|
|
#define TOP_RIGHT_UNDEF int
|
|
|
|
#define TOP_OTHER_UNDEF1 42
|
|
#undef TOP_OTHER_UNDEF2
|
|
#define TOP_OTHER_REDEF1 1
|
|
#define TOP_OTHER_REDEF2 2
|
|
|
|
#define TOP_OTHER_DEF_RIGHT_UNDEF void
|
|
|
|
#define TOP_REDEF_IN_SUBMODULES 0
|