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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr20991.C] - Blame information for rev 301

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

Line No. Rev Author Line
1 301 jeremybenn
// PR middle-end/20991
2
// { dg-options "-O2" }
3
// { dg-do compile }
4
 
5
struct S
6
{
7
  virtual inline int foo () const;
8
  virtual inline bool bar () const;
9
  virtual int baz (int) const;
10
};
11
 
12
inline int S::foo () const
13
{
14
  return 1;
15
}
16
 
17
inline bool S::bar () const
18
{
19
  return foo () == 0;
20
}
21
 
22
void A ()
23
{
24
  S s;
25
  if (s.bar ())
26
    s.foo ();
27
}
28
 
29
void B ()
30
{
31
  S s;
32
  if (s.bar ())
33
    s.foo ();
34
}

powered by: WebSVN 2.1.0

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