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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [char-compare.c] - Blame information for rev 645

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR rtl-optimization/23241 */
2
/* Origin: Josh Conner <jconner@apple.com> */
3
 
4
/* { dg-do run } */
5
/* { dg-options "-O2" } */
6
 
7
extern void abort(void);
8
 
9
struct fbs {
10
  unsigned char uc;
11
} fbs1 = {255};
12
 
13
void fn(struct fbs *fbs_ptr)
14
{
15
  if ((fbs_ptr->uc != 255) && (fbs_ptr->uc != 0))
16
    abort();
17
}
18
 
19
int main(void)
20
{
21
  fn(&fbs1);
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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