blob: 7f867c217065a0ea4a18ac3545093012062dfae6 [file] [log] [blame]
// PR c++/104173
// { dg-do compile { target c++11 } }
struct QString {
QString toLower() &&;
};
struct QCoreApplication {
static QString applicationName();
};
QCoreApplication* instance();
void f() {
instance()->applicationName().toLower();
}
template<class...>
void g() {
instance()->applicationName().toLower();
}
template void g<>();