StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / CodeGen / thread-specifier.c
bloba1f3e168000e694d5fdea6653e7e92884d057957
1 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
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;
9 int c() { return *&b; }
10 int d() {
11 __thread static int e;
12 __thread static union {float a; int b;} f = {.b = 1};
13 return 0;