1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -triple=x86_64-linux-gnu -ast-print %s | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // CHECK: __thread int gnu_tl; 4*f4a2713aSLionel Sambuc // CHECK: _Thread_local int c11_tl; 5*f4a2713aSLionel Sambuc // CHECK: thread_local int cxx11_tl; 6*f4a2713aSLionel Sambuc __thread int gnu_tl; 7*f4a2713aSLionel Sambuc _Thread_local int c11_tl; 8*f4a2713aSLionel Sambuc thread_local int cxx11_tl; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc // CHECK: void foo() { 11*f4a2713aSLionel Sambuc // CHECK: thread_local int cxx11_tl; 12*f4a2713aSLionel Sambuc // CHECK: } foo()13*f4a2713aSLionel Sambucvoid foo() { 14*f4a2713aSLionel Sambuc thread_local int cxx11_tl; 15*f4a2713aSLionel Sambuc } 16