blob: b0a16fe9435d264e62426f4071d5f8d2a30a239d [file] [log] [blame]
// PR c++/57254
// { dg-require-effective-target c++11 }
struct foo {
template<typename T>
void bar(T) &;
template<typename T>
void bar(T) &&;
};
template<typename T>
void foo::bar(T) & {}
template<typename T>
void foo::bar(T) && {}
int main()
{
foo f;
f.bar(0);
}