fix-stacks/tests/mac-lib2.c

22 строки
450 B
C

// This file contains the source code for some tests. If you change this file
// you may need to regenerate some test files. (Even changing the number of
// lines in this comment would have an effect.)
//
// See `tests/README.md` for more details.
#include <stdio.h>
static void duplicate() {
printf("lib2 duplicate");
}
static int lib2_A(int x) {
x = x / 2;
duplicate();
return x;
}
void lib2_B(int* x) {
*x += lib2_A(*x);
}