Debian Codegraph @

clang/test/Sema/PR69717.cpp

raw
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -verify -fsyntax-only %s
2 // REQUIRES: x86-registered-target
3 // expected-no-diagnostics
4
5 // Testcase for https://github.com/llvm/llvm-project/issues/69717
6
7 #pragma float_control(precise, on, push)
8
9 template<typename T>
10 constexpr T multi(T x, T y) {
11 return x * y;
12 }
13
14 int multi_i(int x, int y) {
15 return multi<int>(x, y);
16 }
17
18 #pragma float_control(pop)