diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-11 22:25:03 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-11 22:25:03 +0000 |
commit | 5dc2af12bdb8c71c01556f7d5780c5ef94af0306 (patch) | |
tree | fd87567cde5ab6af7a39da356c714e8ea6a0988f /test/Parser | |
parent | e88a170da9219ef6a62d2182560c4de2ebffbd59 (diff) |
For friend class decls, always use TK_Reference so we'll try to look up existing class decls first.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/cxx-friend.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Parser/cxx-friend.cpp b/test/Parser/cxx-friend.cpp index 5bfaf2fdbc..ea30ddcbd0 100644 --- a/test/Parser/cxx-friend.cpp +++ b/test/Parser/cxx-friend.cpp @@ -3,3 +3,15 @@ class C { friend class D; }; + +class A { +public: + void f(); +}; + +class B { + // 'A' here should refer to the declaration above. + friend class A; + + void f(A *a) { a->f(); } +}; |