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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr42154.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
struct A { char x[1]; };
2
extern void abort (void);
3
void __attribute__((noinline,noclone))
4
foo (struct A a)
5
{
6
  if (a.x[0] != 'a')
7
    abort ();
8
}
9
int main ()
10
{
11
  struct A a;
12
  int i;
13
  for (i = 0; i < 1; ++i)
14
    a.x[i] = 'a';
15
  foo (a);
16
  return 0;
17
}
18
 

powered by: WebSVN 2.1.0

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