Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.bugs / 900403_01.C
blob124654fbfb68f7430cb930c8aa52cc7c24caa7e9
1 // { dg-do assemble  }
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
12 int i, j;
14 void f ()
16   (int) i = j;          // { dg-error "" } 
17   ((int) i) = j;        // { dg-error "" } 
20 int main () { return 0; }