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-1.c] - Blame information for rev 315

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

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

powered by: WebSVN 2.1.0

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