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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
PCH
/
cxx-ms-function-specialization-class-scope.h
blob
7668e7338423bba309a829de748f05bc159a0465
1
2
3
4
template
<
class
T
>
5
class
B
{
6
public
:
7
template
<
class
U
>
8
B
(
U p
) {
9
}
10
template
<>
11
B
(
int
p
) {
// expected-warning{{explicit specialization of 'B<T>' within class scope is a Microsoft extension}}
12
}
13
14
template
<
class
U
>
15
void
f
(
U p
) {
16
T y
=
9
;
17
}
18
19
20
template
<>
21
void
f
(
int
p
) {
// expected-warning{{explicit specialization of 'f' within class scope is a Microsoft extension}}
22
T a
=
3
;
23
}
24
25
void
f
(
int
p
) {
26
T a
=
3
;
27
}
28
};
29