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