summaryrefslogtreecommitdiff
path: root/test/Modules/hidden-names.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/hidden-names.cpp')
-rw-r--r--test/Modules/hidden-names.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Modules/hidden-names.cpp b/test/Modules/hidden-names.cpp
new file mode 100644
index 0000000000000..ba945a1d3c8b2
--- /dev/null
+++ b/test/Modules/hidden-names.cpp
@@ -0,0 +1,13 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/hidden-names %s -verify
+// expected-no-diagnostics
+
+#include "visible.h"
+
+using namespace NS;
+
+namespace {
+ struct X { void f(); };
+}
+
+void X::f() {}