2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / opt-1.c
blob8523c762a2edb0cd5368521eb45e2dbe89c82cb2
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fPIC" } */
3 /* { dg-options "-O2 -fPIC -mtune=i686" { target i?86-*-* } } */
5 extern __thread int thr;
7 static int x;
9 static void
10 bar (void)
12 x = 1;
15 static void
16 #ifdef __i386__
17 __attribute__ ((regparm (3)))
18 #endif
19 foo (const char *x, void *y, int *z)
21 bar ();
24 void
25 test (const char *x, void *y)
27 foo (x, y, &thr);