Hurd: fix mode type for openat
[glibc.git] / elf / tst-tlsmod18a.c
blob1d728daa0512cda7b040e0ff27d3e218b53ac49a
1 #include <stdio.h>
3 #ifndef N
4 # define N 0
5 #endif
7 static __thread int var = 4;
9 int
10 test (void)
12 int *p = &var;
13 /* GCC assumes &var is never NULL, add optimization barrier. */
14 asm volatile ("" : "+r" (p));
15 if (p == NULL || *p != 4)
17 printf ("fail %d %p\n", N, p);
18 return 1;
20 return 0;