FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / expr2.C
blob0e250400b9d885859359ebad0eed15a90a70bd75
1 // Copyright (C) 2000 Free Software Foundation
3 // by Alexandre Oliva <aoliva@cygnus.com>
5 // execution test - XFAIL *-*-*
7 int i, j;
9 const int &f(const int& I, const int& J) {
10   // this must not be optimized to I because it's an lvalue
11   return (I != J) ? I : J;
14 int main () {
15   return (&f(i, j) != &j);