Fix cpp11_thread_local test

This commit is contained in:
Seth R Johnson 2022-02-10 10:02:18 -05:00 committed by Olly Betts
parent af56a1f5c7
commit c21b4a5529
1 changed files with 6 additions and 4 deletions

View File

@ -16,9 +16,9 @@ thread_local static int tsval;
extern thread_local int etval;
thread_local extern int teval;
extern "C" thread_local int ectval;
extern "C" { thread_local int ectval2; }
extern "C" { thread_local int ectval2 = 56; }
extern "C++" thread_local int ecpptval;
extern "C++" { thread_local int ecpptval2; }
extern "C++" { thread_local int ecpptval2 = 67; }
thread_local int ThreadLocals::stval = 11;
thread_local int ThreadLocals::tsval = 22;
@ -32,8 +32,10 @@ thread_local const int ThreadLocals::tscval99;
// externs
thread_local int etval = 33;
thread_local int teval = 44;
extern "C" {
thread_local int ectval = 55;
thread_local int ectval2 = 56;
}
extern "C++" {
thread_local int ecpptval = 66;
thread_local int ecpptval2 = 67;
}
%}