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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [ipa-sra-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* Trivially making sure IPA-SRA does not introduce segfaults where they should
2
   not be.  */
3
 
4
struct bovid
5
{
6
  float red;
7
  int green;
8
  void *blue;
9
};
10
 
11
static int
12
__attribute__((noinline))
13
ox (int fail, struct bovid *cow)
14
{
15
  int r;
16
  if (fail)
17
    r = cow->red;
18
  else
19
    r = 0;
20
  return r;
21
}
22
 
23
int main (int argc, char *argv[])
24
{
25
  int r;
26
 
27
  r = ox ((argc > 2000), (void *) 0);
28
  return r;
29
}

powered by: WebSVN 2.1.0

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