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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [contrib/] [reghunt/] [examples/] [30643.c] - Blame information for rev 294

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

Line No. Rev Author Line
1 265 jeremybenn
extern void abort (void);
2
struct s {  int a;  int b;};
3
void bar (struct s *ps,  int *p, int *__restrict__ rp, int *__restrict__ rq)
4
{
5
  ps->a = 0;
6
  ps->b = 1;
7
  if (ps->a != 0)    abort ();
8
  p[0] = 0;
9
  p[1] = 1;
10
  if (p[0] != 0)     abort ();
11
  rp[0] = 0;
12
  rq[0] = 1;
13
  if (rp[0] != 0)     abort();
14
}

powered by: WebSVN 2.1.0

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