kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

6_7_1_03_thread_local_basic.c (430B)


      1 /* `_Thread_local int x = 42; return x;` — the C frontend must accept
      2  * `_Thread_local` as a storage-class specifier on a file-scope object.
      3  * Lower layers (codegen tls_addr_of, SK_TLS section emission, linker TLS
      4  * image, JIT TLV setup) are already exercised by test/cg group N and
      5  * test/link/cases/36_tls_basic; this case is the missing parser hook. */
      6 _Thread_local int tls_x = 42;
      7 int test_main(void) { return tls_x; }