summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.other/inline4.C
blob: bad66f3a1ed5d455cdfc3d120c9dc0b758d9cfae (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
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>
// Special g++ Options: -O2

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 ();
}
OpenPOWER on IntegriCloud