diff options
Diffstat (limited to 'tools/regression/tls/libxx')
-rw-r--r-- | tools/regression/tls/libxx/Makefile | 10 | ||||
-rw-r--r-- | tools/regression/tls/libxx/xx.c | 12 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tools/regression/tls/libxx/Makefile b/tools/regression/tls/libxx/Makefile new file mode 100644 index 0000000..b3fe79e --- /dev/null +++ b/tools/regression/tls/libxx/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +LIB= xx +SHLIB_MAJOR= 1 + +SRCS= xx.c +#CFLAGS+=-mtls-dialect=sun +NOMAN= t + +.include <bsd.lib.mk> diff --git a/tools/regression/tls/libxx/xx.c b/tools/regression/tls/libxx/xx.c new file mode 100644 index 0000000..6d1e73f --- /dev/null +++ b/tools/regression/tls/libxx/xx.c @@ -0,0 +1,12 @@ +/* $FreeBSD$ */ + +extern int __thread yy1; +int __thread xx1 = 1; +int __thread xx2 = 2; +int __thread xxa[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; + +int +xxyy() +{ + return yy1; +} |