Sign in
cobalt
/
cobalt
/
a3dd835b53c74ec0f3e791c01fbcde33bbf26c6d
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
SemaCXX
/
cast-lvalue-to-rvalue-reference.cpp
blob: 45e72d2924fe4760ea04639122ec26e0c23017ad [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
// expected-no-diagnostics
struct
S
{};
int
x
;
S
&&
y1
=
(
S
&&)
x
;
S
&&
y2
=
reinterpret_cast
<
S
&&>(
x
);
S
&
z1
=
(
S
&)
x
;