mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
20 lines
234 B
C
20 lines
234 B
C
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
extern int foo (void);
|
||
|
|
||
|
extern __thread int yyy;
|
||
|
|
||
|
__thread int zzz = 20;
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
if (foo () != zzz)
|
||
|
abort ();
|
||
|
if (yyy != 100)
|
||
|
abort ();
|
||
|
printf ("PASS\n");
|
||
|
return 0;
|
||
|
}
|