Files
clang-p2996/clang/test/Modules/Inputs/macros_top.h
Richard Smith 9d100866f2 Fix crash if a submodule overrides one of its own macros, and add support for
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
2014-03-06 03:16:27 +00:00

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