You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
346 B
14 lines
346 B
4 months ago
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s -std=c++14 | FileCheck %s
|
||
|
|
||
|
template<typename> struct custom_copy_ctor {
|
||
|
custom_copy_ctor() = default;
|
||
|
custom_copy_ctor(custom_copy_ctor const &) {}
|
||
|
};
|
||
|
|
||
|
// CHECK: define {{.*}} @_ZN16custom_copy_ctorIvEC2ERKS0_(
|
||
|
void pr22354() {
|
||
|
custom_copy_ctor<void> cc;
|
||
|
[cc](auto){}(1);
|
||
|
}
|
||
|
|