aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/PR135665.cpp
blob: c03ba551b3ae280f70e44ca9c23a142711e42191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang_analyze_cc1 -std=c++20 -analyzer-checker=core -verify %s

// expected-no-diagnostics

template<typename... F>
struct overload : public F...
{
  using F::operator()...;
};

template<typename... F>
overload(F&&...) -> overload<F...>;

int main()
{
  const auto l = overload([](const int* i) {}); // no-crash

  return 0;
}