From: Michael Beck Date: Wed, 21 Jun 2006 17:48:59 +0000 (+0000) Subject: simple TLS example X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e07cafb892eb97773bd9b4b9c0210700515cab4d;p=libfirm simple TLS example --- diff --git a/ir/be/test/thread.c b/ir/be/test/thread.c new file mode 100644 index 000000000..33012f080 --- /dev/null +++ b/ir/be/test/thread.c @@ -0,0 +1,6 @@ +#define __thread __declspec( thread ) +__thread int tls_i = 1; + +int test(void) { + return tls_i; +} \ No newline at end of file