mirror of
https://github.com/danog/gllvm.git
synced 2024-12-02 14:57:53 +01:00
25 lines
274 B
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;
|
|
}
|
|
|