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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
friend-out-of-line.cpp
blob
881aed96c7acb411e9f008e3038b5dac00ba2c2d
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
namespace
N
{
5
class
X
;
6
};
7
8
class N
::
X
{
9
template
<
typename T
>
friend
const
T
&
f
(
const
X
&);
10
friend
const int
&
g
(
const
X
&);
11
friend class
Y
;
12
};