summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/bug_1691.cpp
blob: 2d5d120460a0dcfcb0889fa71a3f914df7e7c0b2 (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();
}