summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cpp/30781-lambda_brace_list.cpp
blob: 8626f5af6bf38916be09235720c45cb30f135ec2 (plain)
1
2
3
4
5
6
7
8
9
template<typename T, typename U>
auto add(T t, U u) -> decltype(t + u) { return t + u; }

int main()
{
	auto f1 = [&]() { return 1; };
	auto f2 = [&]() -> decltype(auto) { return 2; };
	string s1{'a', 'b'};
}