clang/test/CodeGenCXX/GH106182.cpp
raw| 1 | // RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s |
| 2 | |
| 3 | template <template <class> class S> |
| 4 | void create_unique() |
| 5 | requires (S{0}, true) {} |
| 6 | |
| 7 | template <class Fn> struct A { |
| 8 | constexpr A(Fn) {}; |
| 9 | }; |
| 10 | |
| 11 | template void create_unique<A>(); |
| 12 | // CHECK: @_Z13create_uniqueI1AEvvQcmtlT_Li0EELb1E( |