summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30828-bug_1691.cpp
blob: e93f7f7422631af3ce033dea79cf7f01c2ecb03f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <string>

std::string foo()
{
	return std::string{"abc"};
}
int main()
{
	const std::string&& name1 = foo();
	std::string&&       name2 = foo();

	const auto&& name3 = foo();
	auto&&       name4 = foo();
}