[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / deduction-guide-partial-ordering.cpp
blob4f57d07a850d399052441f6e5ae94d3f35a2e032
1 // RUN: %clang_cc1 -std=c++20 -verify %s
2 // expected-no-diagnostics
4 namespace pr58456 {
5 template<typename>
6 struct s {
7 constexpr s(auto) {
9 };
11 template<typename T>
12 s(T) -> s<int>;
14 template<typename T> requires true
15 s(T) -> s<int>;
17 void f() {
18 auto const y = s(0);