Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / lvalue2.C
blob35097f28f6fd304d7bc07bfbd4d7650005f8ecb7
1 // { dg-do assemble  }
2 // PRMS Id: 4892
3 // Bug: COND_EXPRs, MODIFY_EXPRs and COMPOUND_EXPRs aren't properly recognized
4 // as lvalues.
6 extern int foo;
7 int& f (int& a, int& b)
9   return (foo ? a : b);         // { dg-bogus "" } 
12 int& g (int& a)
14   return (a = 0);               // { dg-bogus "" } 
17 int& h (int& a, int& b)
19   return (a = 1, b);            // { dg-bogus "" }