fix-stacks/tests/mac-lib1.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("lib1 duplicate");
}
static int lib1_A(int x) {
x = x + 2;
duplicate();
return x;
}
void lib1_B(int* x) {
*x += lib1_A(*x);
}