1  /* PR middle-end/82095 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Og -fno-tree-ccp" } */
       4  /* { dg-require-effective-target tls } */
       5  /* { dg-add-options tls } */
       6  
       7  static int b;
       8  static __thread int c;
       9  
      10  void
      11  foo (void)
      12  {
      13    if (b)
      14      if (c)
      15        b = 1;
      16  }