OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [expect1.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/13239
2
// { dg-do run }
3
// { dg-options "-O2" }
4
 
5
extern "C" void abort (void);
6
 
7
struct Y {
8
  int i;
9
};
10
 
11
bool foo () { return true; }
12
Y bar () { Y y = {0}; return y; }
13
 
14
int main ()
15
{
16
  __builtin_expect (foo () && (bar ().i) == 0, 0) ? 0 : (abort (), 1);
17
}

powered by: WebSVN 2.1.0

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