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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [fold3.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
// PR middle-end/15069
2
// { dg-do run }
3
// { dg-options "-O2" }
4
 
5
extern "C" void abort (void);
6
 
7
typedef enum {
8
  FOUR = 4,
9
  FIVE = 5
10
} direction_t;
11
 
12
int main ()
13
{
14
  direction_t four = FOUR;
15
  int flags = (four & 4L) ? (32L | 128L) : 0;
16
  flags &= 32L;
17
 
18
  if (flags == 0)
19
    abort ();
20
}
21
 

powered by: WebSVN 2.1.0

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