diff options
author | dfr <dfr@FreeBSD.org> | 2004-08-03 09:04:01 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2004-08-03 09:04:01 +0000 |
commit | c5d9c3618efa06abd292cabeea45abf2d8f73b14 (patch) | |
tree | 799306d40d41245260af360416589ca5c07e375f /tools/regression/tls/ttls1/ttls1.c | |
parent | aedc433cf36288de98437f3d9a41b9380f81a498 (diff) | |
download | FreeBSD-src-c5d9c3618efa06abd292cabeea45abf2d8f73b14.zip FreeBSD-src-c5d9c3618efa06abd292cabeea45abf2d8f73b14.tar.gz |
Add regression tests for TLS.
Diffstat (limited to 'tools/regression/tls/ttls1/ttls1.c')
-rw-r--r-- | tools/regression/tls/ttls1/ttls1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/regression/tls/ttls1/ttls1.c b/tools/regression/tls/ttls1/ttls1.c new file mode 100644 index 0000000..2967ebc --- /dev/null +++ b/tools/regression/tls/ttls1/ttls1.c @@ -0,0 +1,15 @@ +/* $FreeBSD$ + +#include <stdio.h> + +extern int __thread xx1; +extern int __thread xx2; +extern int __thread xxa[]; +int __thread a[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; +extern int xxyy(); + +int main(int argc, char** argv) +{ + printf("xx1=%d, xx2=%d, xxa[5]=%d, a[5]=%d, xxyy()=%d\n", + xx1, xx2, xxa[5], a[5], xxyy()); +} |