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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr17078-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
extern void abort(void);
2
 
3
void test(int *ptr)
4
{
5
  int i = 1;
6
  goto useless;
7
  if (0)
8
    {
9
      useless:
10
      i = 0;
11
    }
12
  else
13
    i = 1;
14
  *ptr = i;
15
}
16
 
17
int main()
18
{
19
  int i = 1;
20
  test(&i);
21
  if (i)
22
    abort ();
23
  return 0;
24
}
25
 

powered by: WebSVN 2.1.0

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