1/* For compilation instructions see basic1.c. */ 2 3static int baz = 42; 4static int private_int; 5extern volatile int val; 6int unused_data = 1; 7 8int bar(int); 9 10void unused1() { 11 bar(baz); 12} 13 14static int inc() { 15 return ++private_int; 16} 17 18__attribute__((noinline)) 19int 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*/ 29