OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.oliva/] [expr2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run }
2
 
3
// Copyright (C) 2000 Free Software Foundation
4
 
5
// by Alexandre Oliva 
6
 
7
int i, j;
8
 
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;
12
}
13
 
14
int main () {
15
  return (&f(i, j) != &j);
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.