1 // Compile with: clang -gmlt -fdebug-info-for-profiling -O2 discrim.c -o discrim 2 // to get an input file with DWARF line table discriminators in it. 3 // Tested in test/tools/llvm-symbolizer/sym-verbose.test 4 5 static volatile int do_mul; 6 static volatile int x, v; 7 foo()8int foo () { 9 if (do_mul) x *= v; else x /= v; 10 return x; 11 } 12 main()13int main() { 14 return foo() + foo(); 15 } 16