brintos

brintos / llvm-project-archived public Read only

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