Simple test ensuring that we perform direct initialization when copy-capturing in lambdas
llvm-svn: 150442
This commit is contained in:
parent
dc84eae1e0
commit
1b66d8c287
|
@ -0,0 +1,9 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
|
||||
|
||||
struct DirectInitOnly {
|
||||
explicit DirectInitOnly(DirectInitOnly&);
|
||||
};
|
||||
|
||||
void direct_init_capture(DirectInitOnly &dio) {
|
||||
[dio] {}();
|
||||
}
|
Loading…
Reference in New Issue