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/] [pr34768-2.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
int x;
2
 
3
int __attribute__((noinline)) foo (void)
4
{
5
  x = -x;
6
  return 0;
7
}
8
int __attribute__((const,noinline)) bar (void)
9
{
10
  return 0;
11
}
12
 
13
int __attribute__((noinline))
14
test (int c)
15
{
16
  int tmp = x;
17
  int res = (c ? foo : bar) ();
18
  return tmp + x + res;
19
}
20
 
21
extern void abort (void);
22
int main()
23
{
24
  x = 1;
25
  if (test (1) != 0)
26
    abort ();
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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