aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/pr82095.c
blob: 5713a3ba24a34cdc723174cced8455c0f0811a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR middle-end/82095 */
/* { dg-do compile } */
/* { dg-options "-Og -fno-tree-ccp" } */
/* { dg-require-effective-target tls } */
/* { dg-add-options tls } */

static int b;
static __thread int c;

void
foo (void)
{
  if (b)
    if (c)
      b = 1;
}