summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/macro-hiding
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-21 04:10:40 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-21 04:10:40 +0000
commit57721ac5916c52a13d518bdb24aa479417c5beb3 (patch)
tree9027b6aef220efc69351d8128ce073e0758b602c /clang/test/Modules/Inputs/macro-hiding
parentae1ec299df110b938168150158f6f618e5c86491 (diff)
downloadbcm5719-llvm-57721ac5916c52a13d518bdb24aa479417c5beb3.tar.gz
bcm5719-llvm-57721ac5916c52a13d518bdb24aa479417c5beb3.zip
[modules] Fix some of the confusion when computing the override set for a macro
introduced by finalization. This is still not entirely correct; more fixes to follow. llvm-svn: 213498
Diffstat (limited to 'clang/test/Modules/Inputs/macro-hiding')
-rw-r--r--clang/test/Modules/Inputs/macro-hiding/e1.h1
-rw-r--r--clang/test/Modules/Inputs/macro-hiding/e2.h2
-rw-r--r--clang/test/Modules/Inputs/macro-hiding/module.modulemap4
3 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/macro-hiding/e1.h b/clang/test/Modules/Inputs/macro-hiding/e1.h
new file mode 100644
index 00000000000..bd01708c5e3
--- /dev/null
+++ b/clang/test/Modules/Inputs/macro-hiding/e1.h
@@ -0,0 +1 @@
+#include "a1.h"
diff --git a/clang/test/Modules/Inputs/macro-hiding/e2.h b/clang/test/Modules/Inputs/macro-hiding/e2.h
new file mode 100644
index 00000000000..f3a49c70aea
--- /dev/null
+++ b/clang/test/Modules/Inputs/macro-hiding/e2.h
@@ -0,0 +1,2 @@
+#include "a1.h"
+inline void e1() { assert(true); }
diff --git a/clang/test/Modules/Inputs/macro-hiding/module.modulemap b/clang/test/Modules/Inputs/macro-hiding/module.modulemap
index 14ca9af86ab..20632d35aeb 100644
--- a/clang/test/Modules/Inputs/macro-hiding/module.modulemap
+++ b/clang/test/Modules/Inputs/macro-hiding/module.modulemap
@@ -12,3 +12,7 @@ module c {
module d {
module d1 { header "d1.h" export * }
}
+module e {
+ module e1 { header "e1.h" export * }
+ module e2 { header "e2.h" export * }
+}
OpenPOWER on IntegriCloud