Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
g++.dg
/
ext
/
lvalue1.C
blob: bf883eae21f863254a42eb055e076fd92414b5ae [
file
] [
log
] [
blame
]
// Test that we complain about the gcc cast-as-lvalue extension.
int
main
()
{
char
c
;
static_cast
<int>
(
c
)
=
2
;
// { dg-error "lvalue" "not an lvalue" }
return
c
!=
2
;
}