diff options
Diffstat (limited to 'test/Modules/internal-constants.cpp')
-rw-r--r-- | test/Modules/internal-constants.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Modules/internal-constants.cpp b/test/Modules/internal-constants.cpp new file mode 100644 index 0000000..f95e95c --- /dev/null +++ b/test/Modules/internal-constants.cpp @@ -0,0 +1,12 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-local-submodule-visibility -I%S/Inputs/internal-constants %s -verify + +// expected-no-diagnostics +#include "c.h" + +int q = h(); +int r = N::k; + +#include "b.h" + +int s = N::k; // FIXME: This should be ambiguous if we really want internal linkage declarations to not collide. |