CAP/TPfutures/MiniC-futures/tests/provided/test_fut1.c
2024-12-09 13:00:58 +01:00

23 lines
235 B
C

#include "compat.h"
// Call future
int functi(int x){
int y;
y=x;
y = 42;
return y;
}
int main(){
futint fval;
int val;
fval = Async(functi,123);
val = Get(fval);
println_int(val);
return 0;
}
// EXPECTED
// 42