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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr52086.c] - Blame information for rev 696

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR target/52086 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
/* { dg-additional-options "-fpic" { target fpic } } */
5
 
6
struct S { char a; char b[100]; };
7
int bar (void);
8
int baz (int);
9
 
10
void
11
foo (struct S *x)
12
{
13
  if (bar () & 1)
14
    {
15
      char c = bar ();
16
      baz (4);
17
      x->a += c;
18
      while (x->a)
19
        x->b[c] = bar ();
20
    }
21
}

powered by: WebSVN 2.1.0

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