diff options
Diffstat (limited to 'tools/regression/tls/libxx')
| -rw-r--r-- | tools/regression/tls/libxx/Makefile | 6 | ||||
| -rw-r--r-- | tools/regression/tls/libxx/xx.c | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tools/regression/tls/libxx/Makefile b/tools/regression/tls/libxx/Makefile new file mode 100644 index 000000000000..18195384ad9c --- /dev/null +++ b/tools/regression/tls/libxx/Makefile @@ -0,0 +1,6 @@ +SHLIB_NAME= libxx.so + +SRCS= xx.c +#CFLAGS+=-mtls-dialect=sun + +.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 000000000000..bc81531e2ce0 --- /dev/null +++ b/tools/regression/tls/libxx/xx.c @@ -0,0 +1,11 @@ + +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; +} |
