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
/
SemaTemplate
/
deduction-guide-partial-ordering.cpp
blob
4f57d07a850d399052441f6e5ae94d3f35a2e032
1
// RUN: %clang_cc1 -std=c++20 -verify %s
2
// expected-no-diagnostics
3
4
namespace
pr58456
{
5
template
<
typename
>
6
struct
s
{
7
constexpr
s
(
auto
) {
8
}
9
};
10
11
template
<
typename T
>
12
s
(
T
) ->
s
<
int
>;
13
14
template
<
typename T
>
requires
true
15
s
(
T
) ->
s
<
int
>;
16
17
void
f
() {
18
auto
const
y
=
s
(
0
);
19
}
20
}