OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr24689.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-optimized" } */
3
 
4
extern void bar (unsigned int);
5
 
6
int
7
foo (void)
8
{
9
  char buf[1] = { 3 };
10
  const char *p = buf;
11
  const char **q = &p;
12
  unsigned int ch;
13
  switch (**q)
14
    {
15
    case 1:  ch = 5; break;
16
    default: ch = 0; break;
17
    }
18
 
19
  bar (ch);
20
  return ch;
21
}
22
 
23
/* { dg-final { scan-tree-dump "return 0;" "optimized" } } */
24
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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