p4-0x.cpp revision 762bb9d0ad20320b9f97a841dce57ba5e8e48b07
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s 2 3struct X { }; 4struct Y : X { }; 5 6void test_lvalue_to_rvalue_drop_cvquals(const X &x, const Y &y, const int &i) { 7 (void)(X&&)x; 8 (void)(int&&)i; 9 (void)(X&&)y; 10 (void)(Y&&)x; 11} 12