1*99507c2cSAlex Crichton //! flags = ['-Wl,--no-entry,--export=fib', '-gdwarf-4', '-gsplit-dwarf']
2*99507c2cSAlex Crichton //! dwp = true
3*99507c2cSAlex Crichton 
fib(int n)4*99507c2cSAlex Crichton int fib(int n) {
5*99507c2cSAlex Crichton   int t, a = 0, b = 1;
6*99507c2cSAlex Crichton   for (int i = 0; i < n; i++) {
7*99507c2cSAlex Crichton     t = a;
8*99507c2cSAlex Crichton     a = b;
9*99507c2cSAlex Crichton     b += t;
10*99507c2cSAlex Crichton   }
11*99507c2cSAlex Crichton   return b;
12*99507c2cSAlex Crichton }
13*99507c2cSAlex Crichton 
14*99507c2cSAlex Crichton // Placed at the end so that line numbers are stable.
15*99507c2cSAlex Crichton //
16*99507c2cSAlex Crichton //   clang --target=wasm32 fib-wasm.c -o fib-wasm-split4.wasm \
17*99507c2cSAlex Crichton //     -gdwarf-4 -gsplit-dwarf \
18*99507c2cSAlex Crichton //     -Wl,--no-entry,--export=fib -nostdlib -fdebug-prefix-map=$PWD=.
19*99507c2cSAlex Crichton //   llvm-dwp -e fib-wasm-split4.wasm -o fib-wasm-split4.dwp
20