ttls1.c revision 133066
1258945Sroberto/* $FreeBSD: head/tools/regression/tls/ttls1/ttls1.c 133066 2004-08-03 09:04:01Z dfr $ 2258945Sroberto 3258945Sroberto#include <stdio.h> 4258945Sroberto 5258945Srobertoextern int __thread xx1; 6258945Srobertoextern int __thread xx2; 7258945Srobertoextern int __thread xxa[]; 8258945Srobertoint __thread a[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; 9258945Srobertoextern int xxyy(); 10258945Sroberto 11258945Srobertoint main(int argc, char** argv) 12258945Sroberto{ 13258945Sroberto printf("xx1=%d, xx2=%d, xxa[5]=%d, a[5]=%d, xxyy()=%d\n", 14258945Sroberto xx1, xx2, xxa[5], a[5], xxyy()); 15258945Sroberto} 16258945Sroberto