Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arc / pr9001184797.c
blobe76c6769042f4089473be3a55b96d0ea38ccacc5
1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
3 /* { dg-options "-Os -w -mno-ll64" } */
5 /* This test studies the use of anchors and tls symbols. */
7 struct a b;
8 struct a {
9 long c;
10 long d
11 } e() {
12 static __thread struct a f;
13 static __thread g;
14 g = 5;
15 h();
16 if (f.c)
17 g = g & 5;
18 f = b;