ttls1.c revision c5d9c3618efa06abd292cabeea45abf2d8f73b14
1c5d9c36dfr/* $FreeBSD$
2c5d9c36dfr
3c5d9c36dfr#include <stdio.h>
4c5d9c36dfr
5c5d9c36dfrextern int __thread xx1;
6c5d9c36dfrextern int __thread xx2;
7c5d9c36dfrextern int __thread xxa[];
8c5d9c36dfrint __thread a[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
9c5d9c36dfrextern int xxyy();
10c5d9c36dfr
11c5d9c36dfrint main(int argc, char** argv)
12c5d9c36dfr{
13c5d9c36dfr	printf("xx1=%d, xx2=%d, xxa[5]=%d, a[5]=%d, xxyy()=%d\n",
14c5d9c36dfr	    xx1, xx2, xxa[5], a[5], xxyy());
15c5d9c36dfr}
16