svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git] / gcc / testsuite / g++.dg / ext / lvalue1.C
blobbf883eae21f863254a42eb055e076fd92414b5ae
1 // Test that we complain about the gcc cast-as-lvalue extension.
3 int main ()
5   char c;
7   static_cast<int>(c) = 2; // { dg-error "lvalue" "not an lvalue" }
9   return c != 2;