Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / opt-3.c
blob61f5bdbbaf245369687d8c74a125ed1f45a29b3c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic" } */
3 /* { dg-options "-O2 -fpic -mregparm=3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
4 /* { dg-require-effective-target tls_native } */
5 /* { dg-require-effective-target fpic } */
7 extern __thread int i, j, k;
8 extern void bar(int *, int *, int *);
9 void foo(void)
11 bar(&i, &j, &k);