diff options
Diffstat (limited to 'test/CodeGenCXX/cxx1y-generic-lambdas.cpp')
-rw-r--r-- | test/CodeGenCXX/cxx1y-generic-lambdas.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/cxx1y-generic-lambdas.cpp b/test/CodeGenCXX/cxx1y-generic-lambdas.cpp new file mode 100644 index 0000000000000..9ab44cd4774ab --- /dev/null +++ b/test/CodeGenCXX/cxx1y-generic-lambdas.cpp @@ -0,0 +1,13 @@ +// 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); +} + |