Simple test ensuring that we perform direct initialization when copy-capturing in lambdas

llvm-svn: 150442
This commit is contained in:
Douglas Gregor 2012-02-14 00:03:38 +00:00
parent dc84eae1e0
commit 1b66d8c287
1 changed files with 9 additions and 0 deletions

View File

@ -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] {}();
}