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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [pr47106.C] - Blame information for rev 742

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O -fpartial-inlining -flto -fconserve-stack -fcompare-debug" }
3
// { dg-require-effective-target lto }
4
 
5
void end (int, int) __attribute__ ((__noreturn__));
6
 
7
struct S
8
{
9
  int i;
10
  S *s;
11
};
12
 
13
inline bool f (S *s)
14
{
15
  if (!s->s)
16
    end (0, 0);
17
  return s->s == s;
18
}
19
 
20
inline bool
21
baz (S s1, S)
22
{
23
  while (f (&s1));
24
}
25
 
26
inline bool
27
bar (S s1, S s2, S)
28
{
29
  baz (s1, s2);
30
}
31
 
32
S getS ();
33
 
34
bool
35
foo ()
36
{
37
  bar (getS (), getS (), getS ());
38
}

powered by: WebSVN 2.1.0

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