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.c-torture/] [execute/] [pr43560.c] - Blame information for rev 320

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR tree-optimization/43560 */
2
 
3
struct S
4
{
5
  int a, b;
6
  char c[10];
7
};
8
 
9
__attribute__ ((noinline)) void
10
test (struct S *x)
11
{
12
  while (x->b > 1 && x->c[x->b - 1] == '/')
13
    {
14
      x->b--;
15
      x->c[x->b] = '\0';
16
    }
17
}
18
 
19
const struct S s = { 0, 0, "" };
20
 
21
int
22
main ()
23
{
24
  struct S *p;
25
  asm ("" : "=r" (p) : "0" (&s));
26
  test (p);
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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