mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-07 19:59:18 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D54522 --HG-- extra : moz-landing-system : lando
10 lines
133 B
C++
10 lines
133 B
C++
class P {};
|
|
|
|
void bar(P) {}
|
|
|
|
void foo(int n) {
|
|
P x;
|
|
for (int i = n; i >= 0; --i) {
|
|
bar(static_cast<P&&>(x));
|
|
}
|
|
}
|