summary refs log tree commit diff
path: root/elf/tst-nodelete-uniquemod.cc
blob: 632b303d582152426f3b55a32b66ea5f2f6295d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern int not_exist (void);

inline int make_unique (void)
{
  /* Static variables in inline functions and classes
     generate STB_GNU_UNIQUE symbols.  */
  static int unique;
  return ++unique;
}

int foo (void)
{
  return make_unique () + not_exist ();
}