[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / overload-value-dep-arg.cpp
blob763daadc252a04ff6dff545c893adc6316442f18
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 class C {
5 C(void*);
6 };
8 int f(const C&);
9 int f(unsigned long);
11 template<typename T> int f(const T* t) {
12 return f(reinterpret_cast<unsigned long>(t));