glibc/elf/tst-unique3lib.cc
2012-01-07 10:37:50 -05:00

14 lines
248 B
C++

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;
}