summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/inline4.C
blob: b68c7c2c77aeeffb5ede1f2d6150f1bdcffc97b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do assemble  }
// { dg-options "-O2" }
// Origin: Mark Mitchell <mark@codesourcery.com>

inline void f ()
{
  return;
}

inline void g ();

void (*gp)() = &g;

inline void g ()
{
  f ();
}

extern int array_size;

void h ()
{
  int lookup_array[array_size];
  g ();
}