Debian Codegraph @

gcc/testsuite/gcc.target/arc/pr9001184797.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
3 /* { dg-options "-Os -w -mno-ll64" } */
4
5 /* This test studies the use of anchors and tls symbols. */
6
7 extern int h();
8
9 struct a b;
10 struct a {
11 long c;
12 long d
13 } e() {
14 static __thread struct a f;
15 static __thread int g;
16 g = 5;
17 h();
18 if (f.c)
19 g = g & 5;
20 f = b;
21 }