[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / PR69717.cpp
blob3d1290dcbc32b439525d17b773338461adced4a0
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -verify -fsyntax-only %s
2 // REQUIRES: x86-registered-target
3 // expected-no-diagnostics
5 // Testcase for https://github.com/llvm/llvm-project/issues/69717
7 #pragma float_control(precise, on, push)
9 template<typename T>
10 constexpr T multi(T x, T y) {
11 return x * y;
14 int multi_i(int x, int y) {
15 return multi<int>(x, y);
18 #pragma float_control(pop)