summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/lambda_brace_list.cpp
blob: da3db41f0d7ec795a3811e469f5c8e4f2e064364 (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'   };
}