summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/inline10.C
blob: 086a481286a92b9c2ecbc5a12970d41089ad4cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/25010
// { dg-options "-O2" }

#pragma interface

struct T
{
  T *p;

  void baz ()
  {
    p->baz ();
  }
};

void foo (T *p)
{
  p->baz ();
}