mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 22:31:36 +00:00
11 lines
219 B
C++
11 lines
219 B
C++
// 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] {}();
|
|
}
|