fixed atomics test case
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 26 Sep 2022 17:51:11 +0000 (12:51 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 26 Sep 2022 17:51:11 +0000 (12:51 -0500)
tests/atomics.onyx

index 7c3b34b2bf3658b4dc9df2cd1d2ea7a22a367130..be503a45a1d38da9bc987a7a62e2e6f1b693bf48 100644 (file)
@@ -16,7 +16,7 @@ shared_mutex : sync.Mutex;
 
 // This is shared, and exists to test that initializing new threads
 // does not re-execute the intialization segments.
-test := 5678;
+test_var := 5678;
 
 print_from_other_thread :: (sd) => {
     // Creating high contention for the shared resource
@@ -38,8 +38,8 @@ print_from_other_thread :: (sd) => {
 main :: (args) => {
     sync.mutex_init(^shared_mutex);
 
-    test = 1234;
-    println(test);
+    test_var = 1234;
+    println(test_var);
 
     sd: Shared_Data;
     sd.arr = make([] i32, 1000);