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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [medce-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
 
2
extern void abort (void);
3
extern void link_error (void);
4
 
5
static int ok = 0;
6
 
7
void bar (void)
8
{
9
  ok = 1;
10
}
11
 
12
void foo(int x)
13
{
14
  switch (x)
15
  {
16
  case 0:
17
    if (0)
18
    {
19
      link_error();
20
  case 1:
21
      bar();
22
    }
23
  }
24
}
25
 
26
int main()
27
{
28
  foo (1);
29
  if (!ok)
30
    abort ();
31
  return 0;
32
}
33
 

powered by: WebSVN 2.1.0

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