1 // g++ 1.37.1 bug 900403_01
3 // g++ allows casts to be treated as lvalues (even when the -pedantic
4 // option is used). Neither the C++ Reference Manual nor cfront 2.0
5 // allow this. (gcc gives warnings for such usage with -pedantic).
7 // Cfront 2.0 passes this test.
9 // keywords: lvalues, casts
15 (int) i = j; // ERROR -
16 ((int) i) = j; // ERROR -
19 int main () { return 0; }