Remove powerpc, sparc fdim inlines (bug 22987).
[glibc.git] / elf / tst-tlsmod4.c
blob86889aac7e58bcf54293aab9f7d79de9dc8424bb
1 #include <stdio.h>
3 #include "tls-macros.h"
6 COMMON_INT_DEF(baz);
9 int
10 in_dso (int n, int *caller_bazp)
12 int *bazp;
13 int result = 0;
15 puts ("foo"); /* Make sure PLT is used before macros. */
16 asm ("" ::: "memory");
18 bazp = TLS_GD (baz);
20 if (caller_bazp != NULL && bazp != caller_bazp)
22 printf ("callers address of baz differs: %p vs %p\n", caller_bazp, bazp);
23 result = 1;
25 else if (*bazp != n)
27 printf ("baz != %d\n", n);
28 result = 1;
31 *bazp = 16;
33 return result;