aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/qualified-id-lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/qualified-id-lookup.cpp')
-rw-r--r--test/SemaCXX/qualified-id-lookup.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/SemaCXX/qualified-id-lookup.cpp b/test/SemaCXX/qualified-id-lookup.cpp
index abde62efceae..dfb059aa36ad 100644
--- a/test/SemaCXX/qualified-id-lookup.cpp
+++ b/test/SemaCXX/qualified-id-lookup.cpp
@@ -124,3 +124,25 @@ namespace test1 {
template class ClassChecker<int>;
}
+
+namespace PR6830 {
+ namespace foo {
+
+ class X {
+ public:
+ X() {}
+ };
+
+ } // namespace foo
+
+ class Z {
+ public:
+ explicit Z(const foo::X& x) {}
+
+ void Work() {}
+ };
+
+ void Test() {
+ Z(foo::X()).Work();
+ }
+}