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/] [20080222-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
extern void abort (void);
2
 
3
struct container
4
{
5
  unsigned char data[1];
6
};
7
 
8
unsigned char space[6] = {1, 2, 3, 4, 5, 6};
9
 
10
int
11
foo (struct container *p)
12
{
13
  return p->data[4];
14
}
15
 
16
int
17
main ()
18
{
19
  if (foo ((struct container *) space) != 5)
20
    abort ();
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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