Commit 7fcc15aa by Alexandre Oliva Committed by Alexandre Oliva

* expr2.C: New test.

From-SVN: r34234
parent e801c5c2
2000-05-28 Alexandre Oliva <aoliva@cygnus.com>
* expr2.C: New test.
2000-04-19 Alexandre Oliva <oliva@lsd.ic.unicamp.br> 2000-04-19 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* stkalign.C: New test. * stkalign.C: New test.
......
// 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment