Changeset 237df76 for tests/linking


Ignore:
Timestamp:
Oct 6, 2021, 8:40:19 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
enum, forall-pointer-decay, master
Children:
05c941a, 68fe946e
Parents:
8dcb832
Message:

convert from test programs I/O acquire to mutex statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/linking/io-acquire.cfa

    r8dcb832 r237df76  
    1717#include <fstream.hfa>
    1818#include <stdlib.hfa>
     19#include <mutex_stmt.hfa>
    1920
    2021int main() {
    2122        int i;
    2223        if(threading_enabled()) {
    23                 stdout | acquire | "YES";
     24                mutex( stdout ) stdout | "YES";
    2425                stdin | i;
    2526        } else {
    26                 stdout | acquire | "NO";
     27                mutex( stdout ) stdout | "NO";
    2728                stdin | i;
    2829        }
Note: See TracChangeset for help on using the changeset viewer.