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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr49217.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-fno-early-inlining" } */
3
 
4
extern void abort (void);
5
int i;
6
static void foo(void);
7
void __attribute__((noinline))
8
bar (void)
9
{
10
  if (!i)
11
    foo ();
12
}
13
static void
14
foo(void)
15
{
16
  i = 1;
17
  bar ();
18
}
19
int main()
20
{
21
  i = 0;
22
  bar();
23
  if (i != 1)
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.