summary refs log tree commit diff
path: root/elf/tst-unique3lib.cc
blob: 5429dc57c0321ee1470fce4c0b2c162a4e5b92e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
extern char *gets (char *);

#include <cstdio>
#include "tst-unique3.h"
template<typename T> int S<T>::i = 1;
static int i = S<char>::i;

int
in_lib (void)
{
  std::printf ("in_lib: %d %d\n", S<char>::i, i);
  return S<char>::i++ != 2 || i != 1;
}