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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [930408-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

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