simple TLS example
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 21 Jun 2006 17:48:59 +0000 (17:48 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 21 Jun 2006 17:48:59 +0000 (17:48 +0000)
ir/be/test/thread.c [new file with mode: 0644]

diff --git a/ir/be/test/thread.c b/ir/be/test/thread.c
new file mode 100644 (file)
index 0000000..33012f0
--- /dev/null
@@ -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