summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-cplusplus.Move.cpp
blob: 65f2e3656163cfbf7164f0238f719f0dfec94cdd (plain)
1
2
3
4
5
6
7
8
9
10
class P {};

void bar(P) {}

void foo(int n) {
    P x;
    for (int i = n; i >= 0; --i) {
        bar(static_cast<P&&>(x));
    }
}