Fix grouping and reuse other locales in various locales
[glibc.git] / elf / tst-unique3.cc
blobb2c95939a5f36fc714a10676f6c6fe4ab39f5343
1 #include "tst-unique3.h"
2 #include <cstdio>
3 #include "../dlfcn/dlfcn.h"
5 int t = S<char>::i;
7 int
8 main (void)
10 std::printf ("%d %d\n", S<char>::i, t);
11 int result = S<char>::i++ != 1 || t != 1;
12 result |= in_lib ();
13 void *d = dlopen ("$ORIGIN/tst-unique3lib2.so", RTLD_LAZY);
14 int (*fp) ();
15 if (d == NULL || (fp = (int(*)()) dlsym (d, "in_lib2")) == NULL)
17 std::printf ("failed to get symbol in_lib2\n");
18 return 1;
20 result |= fp ();
21 dlclose (d);
22 return result;