* expr2.C: New test.

From-SVN: r34234
This commit is contained in:
Alexandre Oliva 2000-05-28 14:20:27 +00:00 committed by Alexandre Oliva
parent e801c5c267
commit 7fcc15aa32
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-05-28 Alexandre Oliva <aoliva@cygnus.com>
* expr2.C: New test.
2000-04-19 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* stkalign.C: New test.

View File

@ -0,0 +1,18 @@
// Copyright (C) 2000 Free Software Foundation
// by Alexandre Oliva <aoliva@cygnus.com>
// execution test - XFAIL *-*-*
int i, j;
const int &f(const int& I, const int& J) {
// this must not be optimized to I because it's an lvalue
return (I != J) ? I : J;
}
int main () {
if (&f(i, j) != &j)
abort ();
exit (0);
}