2 // g++ 1.37.1 bug 900403_01
4 // g++ allows casts to be treated as lvalues (even when the -pedantic
5 // option is used). Neither the C++ Reference Manual nor cfront 2.0
6 // allow this. (gcc gives warnings for such usage with -pedantic).
8 // Cfront 2.0 passes this test.
10 // keywords: lvalues, casts
16 (int) i = j; // { dg-error "" }
17 ((int) i) = j; // { dg-error "" }
20 int main () { return 0; }