repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
[llvm-project.git]
/
clang
/
test
/
Sema
/
local-class-friend.cpp
blob
6f9af7132c2a16dd16b0457d779dac0f1f62289e
1
// RUN: %clang_cc1 -verify -fsyntax-only %s
2
// expected-no-diagnostics
3
4
void
foo
()
5
{
class
c1
{
6
private
:
7
int
testVar
;
8
public
:
9
friend class
c2
;
10
};
11
12
class
c2
{
13
void
f
(
c1 obj
) {
14
int
a
=
obj
.
testVar
;
// Ok
15
}
16
};
17
}