[dsymutil] Use the new MCDwarfLineTableParams customization to emit linetables
[oota-llvm.git] / test / tools / dsymutil / Inputs / basic2.c
1 /* For compilation instructions see basic1.c. */
2
3 static int baz = 42;
4 static int private_int;
5 extern volatile int val;
6 int unused_data = 1;
7
8 int bar(int);
9
10 void unused1() {
11   bar(baz);
12 }
13
14 static int inc() {
15   return ++private_int;
16 }
17
18 __attribute__((noinline))
19 int foo(int arg) {
20   return bar(arg+val) + inc() + baz++;
21 }
22
23 /* This file was also used to create basic2-custom-linetable.macho.x86_64.o
24    with a custom clang that had different settings for the linetable
25    encoding constants: line_base == -1 and line_range == 4.
26
27    clang -c -g basic2.c -o basic2-custom-linetable.macho.x86_64.o 
28 */