1// { dg-do assemble  }
2// g++ 1.37.1 bug 900403_01
3
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).
7
8// Cfront 2.0 passes this test.
9
10// keywords: lvalues, casts
11
12int i, j;
13
14void f ()
15{
16  (int) i = j;		// { dg-error "" }
17  ((int) i) = j;	// { dg-error "" }
18}
19
20int main () { return 0; }
21