diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-06 03:16:27 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-06 03:16:27 +0000 |
commit | 9d100866f235b792e68b03697c4f7a83ad02e6e8 (patch) | |
tree | 35046d64c60a2bf4d5a45ed065bb4999c76e0f4b /clang/test/Modules/Inputs/macros_top_c.h | |
parent | 1a1e818b13b11109903140cfaebb64d2ce537237 (diff) | |
download | bcm5719-llvm-9d100866f235b792e68b03697c4f7a83ad02e6e8.tar.gz bcm5719-llvm-9d100866f235b792e68b03697c4f7a83ad02e6e8.zip |
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
Diffstat (limited to 'clang/test/Modules/Inputs/macros_top_c.h')
-rw-r--r-- | clang/test/Modules/Inputs/macros_top_c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/macros_top_c.h b/clang/test/Modules/Inputs/macros_top_c.h new file mode 100644 index 00000000000..aee82462131 --- /dev/null +++ b/clang/test/Modules/Inputs/macros_top_c.h @@ -0,0 +1,2 @@ +#include "macros_top_b.h" +#undef TOP_REDEF_IN_SUBMODULES |