summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/using-decl-redecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/using-decl-redecl.cpp')
-rw-r--r--clang/test/Modules/using-decl-redecl.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/clang/test/Modules/using-decl-redecl.cpp b/clang/test/Modules/using-decl-redecl.cpp
index 0e78cec1188..0524052fce5 100644
--- a/clang/test/Modules/using-decl-redecl.cpp
+++ b/clang/test/Modules/using-decl-redecl.cpp
@@ -2,10 +2,20 @@
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t \
// RUN: -fmodule-map-file=%S/Inputs/using-decl-redecl/module.modulemap \
// RUN: -I%S/Inputs/using-decl-redecl \
+// RUN: -Wno-modules-ambiguous-internal-linkage \
// RUN: -verify %s
+
+#include "d.h"
+
+const int n = 0;
+namespace M { using ::n; }
+
#include "c.h"
+
N::clstring y = b;
// Use a typo to trigger import of all declarations in N.
N::clstrinh s; // expected-error {{did you mean 'clstring'}}
-// expected-note@a.h:2 {{here}}
+// expected-note@a.h:3 {{here}}
+
+namespace M { using N::n; }
OpenPOWER on IntegriCloud