diff options
Diffstat (limited to 'test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp')
| -rw-r--r-- | test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp b/test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp index 3fde0daa96cfb..c35af1def2085 100644 --- a/test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp +++ b/test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp @@ -44,3 +44,21 @@ void resolves_to_different() { v.set<double>(3.2); } } + +namespace rdar9915664 { + struct A { + template<typename T> void a(); + }; + + struct B : A { }; + + struct C : A { }; + + struct D : B, C { + A &getA() { return static_cast<B&>(*this); } + + void test_a() { + getA().a<int>(); + } + }; +} |
