llvm-for-llvmta/tools/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp

11 lines
219 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
// expected-no-diagnostics
struct DirectInitOnly {
explicit DirectInitOnly(DirectInitOnly&);
};
void direct_init_capture(DirectInitOnly &dio) {
[dio] {}();
}