1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-macosx10.8 -std=c++11 -S -emit-llvm %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // CHECK: @a = internal thread_local global 4*f4a2713aSLionel Sambuc // CHECK: @_tlv_atexit({{.*}}@_ZN1AD1Ev 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc struct A { 7*f4a2713aSLionel Sambuc ~A(); 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc thread_local A a; 11