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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040917-1.c] - Blame information for rev 715

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

Line No. Rev Author Line
1 688 jeremybenn
/* submitted by kenneth zadeck */
2
 
3
static int test_var;
4
 
5
/* the idea here is that not only is inlinable, inlinable but since it
6
   is static, the cgraph node will not be marked as output.  The
7
   current version of the code ignores these cgraph nodes.  */
8
 
9
void not_inlinable()  __attribute__((noinline));
10
 
11
static void
12
inlinable ()
13
{
14
  test_var = -10;
15
}
16
 
17
void
18
not_inlinable ()
19
{
20
  inlinable();
21
}
22
 
23
main ()
24
{
25
  test_var = 10;
26
  /* Variable test_var should be considered call-clobbered by the call
27
     to not_inlinable().  */
28
  not_inlinable ();
29
  if (test_var == 10)
30
    abort ();
31
  return 0;
32
}

powered by: WebSVN 2.1.0

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