[RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (#125340)
[llvm-project.git] / clang / test / CodeGenCXX / constexpr-late-instantiation.cpp
blob7e8d584c0be66ffc12b4745edb9486ae5dceacf6
1 // Make sure foo is instantiated and we don't get a link error
2 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple %s -o- | FileCheck %s
4 template <typename T>
5 constexpr T foo(T a);
7 // CHECK-LABEL: define {{.*}} @main
8 int main() {
9 // CHECK: call {{.*}} @_Z3fooIiET_S0_
10 int k = foo<int>(5);
12 // CHECK: }
14 template <typename T>
15 constexpr T foo(T a) {
16 return a;