Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cxx1y-generic-lambdas.cpp
blob9ab44cd4774aba54eb36f8f9a00283598daa2a07
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s -std=c++14 | FileCheck %s
3 template<typename> struct custom_copy_ctor {
4 custom_copy_ctor() = default;
5 custom_copy_ctor(custom_copy_ctor const &) {}
6 };
8 // CHECK: define {{.*}} @_ZN16custom_copy_ctorIvEC2ERKS0_(
9 void pr22354() {
10 custom_copy_ctor<void> cc;
11 [cc](auto){}(1);