summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_braced_init.cpp
blob: cf86baebbc42f06ae0aec379f2912d04288bc0a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int foo1()
{
	// should not have newline before '.'
	return std::pair<int, int>{1, 2}.first;
}

int foo2()
{
	// should be ARITH, not ADDR
	return int{3} & 2;
}

int foo3()
{
	// should be ARITH, not ADDR
	constexpr static int x = 3;
	return decltype(x){x} & 2;
}