C2x scanf binary constant handling
[glibc.git] / elf / tst-tlsmod2.c
blob3223fe494bb7e1f034ef977b349db0ea2cf88d21
1 #include <stdio.h>
4 __thread int foo;
7 int
8 in_dso (int n, int *caller_foop)
10 int *foop;
11 int result = 0;
13 puts ("foo"); /* Make sure PLT is used before macros. */
14 asm ("" ::: "memory");
16 foop = &foo;
18 if (caller_foop != NULL && foop != caller_foop)
20 printf ("callers address of foo differs: %p vs %p\n", caller_foop, foop);
21 result = 1;
23 else if (*foop != n)
25 printf ("foo != %d\n", n);
26 result = 1;
29 *foop = 16;
31 return result;