minix/external/bsd/llvm/dist/clang/test/SemaCXX/cxx1y-init-captures.cpp

15 lines
281 B
C++
Raw Normal View History

// RUN: %clang_cc1 -std=c++1y %s -verify
// expected-no-diagnostics
namespace variadic_expansion {
void f(int &, char &);
template <typename ... T> void g(T &... t) {
f([&a(t)]()->decltype(auto) {
return a;
}() ...);
}
void h(int i, char c) { g(i, c); }
}