1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify 2 // expected-no-diagnostics 3 4 struct DirectInitOnly { 5 explicit DirectInitOnly(DirectInitOnly&); 6 }; 7 8 void direct_init_capture(DirectInitOnly &dio) { 9 [dio] {}(); 10 } 11