Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
e650c8c3bca2f58cad8ffa8aab63126d26e890cd
/
.
/
test
/
Parser
/
cxx-friend.cpp
blob: ea30ddcbd0a814982f35de8db18912f8cb68493f [
file
] [
log
] [
blame
]
// RUN: clang-cc -fsyntax-only %s
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
();
}
};