summaryrefslogtreecommitdiff
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp
blob: 7139058cd08917f7504c3314f097d5f9a62433a2 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify

struct DirectInitOnly {
  explicit DirectInitOnly(DirectInitOnly&);
};

void direct_init_capture(DirectInitOnly &dio) {
  [dio] {}();
}