ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/arc/pr9001184797.c

20 lines
322 B
C

/* { dg-do compile } */
/* { dg-require-effective-target tls } */
/* { dg-options "-Os -w -mno-ll64" } */
/* This test studies the use of anchors and tls symbols. */
struct a b;
struct a {
long c;
long d
} e() {
static __thread struct a f;
static __thread g;
g = 5;
h();
if (f.c)
g = g & 5;
f = b;
}