Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/lvalue1.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// Test that we complain about the gcc cast-as-lvalue extension. int main () { char c; static_cast<int>(c) = 2; // { dg-error "3:lvalue" "not an lvalue" } return c != 2; }