summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cpp/33053-for_auto.cpp
blob: 073556c9345ba1a994842803c0d36c838c570bc4 (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();
}