summaryrefslogtreecommitdiffstats
path: root/trunk/testsuite/tls4.c
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/testsuite/tls4.c')
-rw-r--r--trunk/testsuite/tls4.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/trunk/testsuite/tls4.c b/trunk/testsuite/tls4.c
new file mode 100644
index 0000000..0882f07
--- /dev/null
+++ b/trunk/testsuite/tls4.c
@@ -0,0 +1,16 @@
+#include "tls1.h"
+#include <stdlib.h>
+
+#define CHECK(N, S) \
+ p = &a##N; \
+ if (p->a != S || p->b != S + 1 || p->c != S + 2) \
+ abort ()
+
+int main()
+{
+ struct A *p;
+ check1 ();
+ CHECK (1, 4);
+ CHECK (2, 7);
+ exit (0);
+}