Commit | Line | Data |
---|---|---|
1670f9c1 L |
1 | #include <stdlib.h> |
2 | #include <stdio.h> | |
3 | ||
4 | extern int foo (void); | |
5 | ||
6 | extern __thread int yyy; | |
7 | ||
8 | __thread int zzz = 20; | |
9 | ||
10 | int | |
11 | main (void) | |
12 | { | |
13 | if (foo () != zzz) | |
14 | abort (); | |
15 | if (yyy != 100) | |
16 | abort (); | |
17 | printf ("PASS\n"); | |
18 | return 0; | |
19 | } |