summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cpp/10023-for_auto.cpp
blob: 775031a518de2b5a21afbd75a5c475575ae09c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void foo()
{
    for (auto const& item : list)
        bar(item);
    for (const auto& item : list)
        bar(item);
    for (auto& item : list)
        bar(item);

    auto* var = bar();
    auto& var = bar();
    auto var = bar();
    auto const* var = bar();
    auto const& var = bar();
    auto const var = bar();
}