19ca5c425SRichard Smith // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s 2*c6e68daaSAndy Gibbs // expected-no-diagnostics 3ce95084dSDouglas Gregor 4ce95084dSDouglas Gregor struct X { }; 5ce95084dSDouglas Gregor struct Y : X { }; 6ce95084dSDouglas Gregor test_lvalue_to_rvalue_drop_cvquals(const X & x,const Y & y,const int & i)7ce95084dSDouglas Gregorvoid test_lvalue_to_rvalue_drop_cvquals(const X &x, const Y &y, const int &i) { 8ce95084dSDouglas Gregor (void)(X&&)x; 9ce95084dSDouglas Gregor (void)(int&&)i; 10ce95084dSDouglas Gregor (void)(X&&)y; 11ce95084dSDouglas Gregor (void)(Y&&)x; 12ce95084dSDouglas Gregor } 13