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 | 22e3784c79a39de7b2a3ee37c231f22cd43b07aa (patch) | |
| tree | 3a242fb7188161e90db2030e6f90735880e77199 /clang/test | |
| parent | 2ee73b86c0ad30efcfa0be7668b04b848076e710 (diff) | |
| download | bcm5719-llvm-22e3784c79a39de7b2a3ee37c231f22cd43b07aa.tar.gz bcm5719-llvm-22e3784c79a39de7b2a3ee37c231f22cd43b07aa.zip | |
For friend class decls, always use TK_Reference so we'll try to look up existing class decls first.
llvm-svn: 71481
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Parser/cxx-friend.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-friend.cpp b/clang/test/Parser/cxx-friend.cpp index 5bfaf2fdbce..ea30ddcbd0a 100644 --- a/clang/test/Parser/cxx-friend.cpp +++ b/clang/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(); } +}; |

