summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/diamond.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-01 22:20:10 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-01 22:20:10 +0000
commitcf68c58afe5dbb92355f53440eb643af393eb8a0 (patch)
tree8710e9d9862653c7cab38b0bc30432af01ac8222 /clang/test/Modules/diamond.c
parent3367123b1233c7dcabc6ccc80461d76e3170f5cb (diff)
downloadbcm5719-llvm-cf68c58afe5dbb92355f53440eb643af393eb8a0.tar.gz
bcm5719-llvm-cf68c58afe5dbb92355f53440eb643af393eb8a0.zip
Implement name hiding for declarations deserialized from a non-visible
module. When that module becomes visible, so do those declarations. llvm-svn: 145640
Diffstat (limited to 'clang/test/Modules/diamond.c')
-rw-r--r--clang/test/Modules/diamond.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/diamond.c b/clang/test/Modules/diamond.c
index 59181c533d4..93722e9fe2a 100644
--- a/clang/test/Modules/diamond.c
+++ b/clang/test/Modules/diamond.c
@@ -5,6 +5,12 @@
__import_module__ diamond_bottom;
+// FIXME: We want 'bottom' to re-export left and right, and both of those to
+// re-export 'top'.
+__import_module__ diamond_top;
+__import_module__ diamond_left;
+__import_module__ diamond_right;
+
void test_diamond(int i, float f, double d, char c) {
top(&i);
left(&f);
OpenPOWER on IntegriCloud