summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/tls-init-funcs.cpp
blob: 99fe75f7f4f8398458c80a181dfe1c3380497804 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.8 -std=c++11 -S -emit-llvm %s -o - | FileCheck %s

// CHECK: @a = internal thread_local global
// CHECK: @_tlv_atexit({{.*}}@_ZN1AD1Ev
// CHECK: define weak hidden {{.*}} @_ZTW1a

struct A {
  ~A();
};

thread_local A a;
OpenPOWER on IntegriCloud