Changeset a2e4b0c for tests/linking
- Timestamp:
- Oct 28, 2021, 11:08:27 AM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 441d11c
- Parents:
- a51a02d (diff), 15885de9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
tests/linking/io-acquire.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/linking/io-acquire.cfa
ra51a02d ra2e4b0c 17 17 #include <fstream.hfa> 18 18 #include <stdlib.hfa> 19 #include <mutex_stmt.hfa> 19 20 20 21 int main() { 21 22 int i; 22 23 if(threading_enabled()) { 23 stdout | acquire| "YES";24 mutex( stdout ) stdout | "YES"; 24 25 stdin | i; 25 26 } else { 26 stdout | acquire| "NO";27 mutex( stdout ) stdout | "NO"; 27 28 stdin | i; 28 29 }
Note:
See TracChangeset
for help on using the changeset viewer.