xref: /llvm-project/clang/test/Sema/PR69717.cpp (revision 5fdb70be7b0a1340a7ebdeb94ab073e466fc4aa6)
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>
multi(T x,T y)10 constexpr T multi(T x, T y) {
11   return x * y;
12 }
13 
multi_i(int x,int y)14 int multi_i(int x, int y) {
15   return multi<int>(x, y);
16 }
17 
18 #pragma float_control(pop)
19