CAP/MiniC/TP06/tests/provided/basic-functions/test_fun_fwd_def01.c
2024-10-06 19:58:11 +02:00

21 lines
281 B
C

#include "printlib.h"
// Definition of function with a single parameter
// with forward declaration, i.e. declaration here and definition after main
int f(int x);
int main(){
int z;
z = f(0);
return 0;
}
int f(int x){
int y ;
y = 42;
return y;
}
// EXPECTED