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.dg/] [pr30643.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
/* { dg-final { scan-assembler-not "undefined" } } */
4
 
5
/* Make sure we optimize all calls away.  */
6
 
7
extern void undefined (void);
8
struct s { int a, b; };
9
void bar (struct s *ps,  int *p, int *__restrict__ rp, int *__restrict__ rq)
10
{
11
  ps->a = 0;
12
  ps->b = 1;
13
  if (ps->a != 0)
14
    undefined ();
15
  p[0] = 0;
16
  p[1] = 1;
17
  if (p[0] != 0)
18
    undefined ();
19
  rp[0] = 0;
20
  rq[0] = 1;
21
  if (rp[0] != 0)
22
    undefined ();
23
}
24
int main (void) {
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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