• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
2 
3 // CHECK: @b = external thread_local global
4 // CHECK: @d.e = internal thread_local global
5 // CHECK: @d.f = internal thread_local global
6 // CHECK: @a = thread_local global
7 __thread int a;
8 extern __thread int b;
c()9 int c() { return *&b; }
d()10 int d() {
11   __thread static int e;
12   __thread static union {float a; int b;} f = {.b = 1};
13   return 0;
14 }
15 
16