1 // { dg-require-effective-target c++11 } 2 3 class Foo 4 { 5 public: bar()6 void bar() const && & { } // { dg-error "multiple ref-qualifiers" } 7 }; 8