Debian Codegraph @

llvm/test/tools/llvm-symbolizer/Inputs/discrim.c

raw
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
8 int foo () {
9 if (do_mul) x *= v; else x /= v;
10 return x;
11 }
12
13 int main() {
14 return foo() + foo();
15 }