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
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
templated-friend-decl.cpp
blob
c0034cd72f78f75e14d1d237e2703209cb02a296
1
// RUN: %clang_cc1 %s
2
3
template
<
typename T
>
4
struct
Foo
{
5
template
<
typename U
>
6
struct
Bar
{};
7
8
// The templated declaration for class Bar should not be instantiated when
9
// Foo<int> is. This is to protect against PR5848; for now, this "parses" but
10
// requires a rewrite of the templated friend code to be properly fixed.
11
template
<
typename U
>
12
friend
struct
Bar
;
13
};
14
15
Foo
<
int
>
x
;