gllvm/examples/lto/a.c

25 lines
274 B
C

//https://llvm.org/docs/LinkTimeOptimization.html
#include "a.h"
static signed int i = 0;
void foo2(void) {
i = -1;
}
static int foo3() {
foo4();
return 10;
}
int foo1(void) {
int data = 0;
if (i < 0)
data = foo3();
data = data + 42;
return data;
}