X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Ffunctional%2Ftls_local_exec.c;fp=src%2Ffunctional%2Ftls_local_exec.c;h=af54c52f0455ba4360d609c821c38f26933d8936;hp=c6ec55898c9a43101d6f1b80af2f95a89242f7e0;hb=89a298d7748ebeeb076fea080b8077084f2a64cb;hpb=feee04a18f1530207297a11e76c9ed9e6f51ec45 diff --git a/src/functional/tls_local_exec.c b/src/functional/tls_local_exec.c index c6ec558..af54c52 100644 --- a/src/functional/tls_local_exec.c +++ b/src/functional/tls_local_exec.c @@ -1,4 +1,5 @@ #include +#include #include #include "test.h" @@ -8,6 +9,7 @@ static __thread char d4096 __attribute__ ((aligned(4096))) = 33; static __thread char z1 = 0; static __thread char z64 __attribute__ ((aligned(64))) = 0; static __thread char z4096 __attribute__ ((aligned(4096))) = 0; +static __thread const char *s1 = "s1"; static int tnum; @@ -39,6 +41,8 @@ static void *check(void *arg) CHECK(ptrmod(&z64, 64) == 0, " address is %p, want 64 byte alignment", &z64); CHECK(ptrmod(&z4096, 4096) == 0, " address is %p, want 4096 byte alignment", &z4096); + + CHECK(!strcmp(s1, "s1"), " want s1 got %s", s1); return 0; }