kit

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

builtin_23_atomic_long_literal_convert.c (190B)


      1 int test_main(void) {
      2   unsigned long x = 99;
      3   __atomic_store_n(&x, 0, __ATOMIC_RELEASE);
      4   unsigned long old = __atomic_fetch_add(&x, 1, __ATOMIC_ACQ_REL);
      5   return (int)(old + x + 41);
      6 }