OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr18241-4.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O1" } */
3
 
4
void abort (void);
5
 
6
int f(int i1243)
7
{
8
  int i[2], *i1 = i;
9
  i[0] = 1;
10
  volatile int *i2 = i1;
11
  i2[1] = 1;
12
  i1243 = 0;
13
  return i2[1]+i2[0];
14
}
15
 
16
 
17
int main(void)
18
{
19
  if( f(100) != 2)
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.