FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900403_01.C
blob608d8f92bd53ded7b6ac51e04a00b6f15adb0655
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
11 int i, j;
13 void f ()
15   (int) i = j;          // ERROR - 
16   ((int) i) = j;        // ERROR - 
19 int main () { return 0; }