1 // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
2
3 struct X { };
4 struct Y : X { };
5
6 void 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