diff options
author | John McCall <rjmccall@apple.com> | 2010-04-29 01:20:45 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-04-29 01:20:45 +0000 |
commit | 7576a65d25f3d604cec57e357b17ead8b3bbfa16 (patch) | |
tree | cc947f2ca2d142609b8761627370d45af7e0c671 | |
parent | 96db310ab7ca59e1890ddef25a3701bc2909d20f (diff) |
Test case for r102578.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102580 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CXX/class.access/p6.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CXX/class.access/p6.cpp b/test/CXX/class.access/p6.cpp index 814265d0b0..734a4d8c48 100644 --- a/test/CXX/class.access/p6.cpp +++ b/test/CXX/class.access/p6.cpp @@ -105,3 +105,17 @@ namespace test3 { Outer::A<B, Blue>::foo(); // expected-error {{no member named 'foo'}} } } + +namespace test4 { + template <class T> class A { + private: typedef int type; + template <class U> friend void foo(U &, typename U::type); + }; + + template <class U> void foo(U &, typename U::type) {} + + void test() { + A<int> a; + foo(a, 0); + } +} |