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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [uninit-pr19430-2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -Wuninitialized" } */
3
 
4
int  *p, *q;
5
 
6
int foo (int b)
7
{
8
  int i, j = 0;
9
  int *x;
10
  p = &i;
11
  q = &j;
12
  if (b)
13
    x = p;
14
  else
15
    x = q;
16
  return *x;
17
}
18
 

powered by: WebSVN 2.1.0

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