aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/tls-init-funcs.cpp
blob: 17299dcb7b6ce753a62197c4d2ebb4189a05ed4e (plain)
1
2
3
4
5
6
7
8
9
10
// 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

struct A {
  ~A();
};

thread_local A a;