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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 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.