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/] [930408-1.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
typedef enum foo E;
2
enum foo { e0, e1 };
3
 
4
struct {
5
  E eval;
6
} s;
7
 
8
p()
9
{
10
  abort();
11
}
12
 
13
f()
14
{
15
  switch (s.eval)
16
    {
17
    case e0:
18
      p();
19
    }
20
}
21
 
22
main()
23
{
24
  s.eval = e1;
25
  f();
26
  exit(0);
27
}

powered by: WebSVN 2.1.0

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