[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / llvm / test / tools / llvm-symbolizer / Inputs / discrim.c
blob5500f094e10c668f331c3592d5dfab77ae54ba9a
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
5 static volatile int do_mul;
6 static volatile int x, v;
8 int foo () {
9 if (do_mul) x *= v; else x /= v;
10 return x;
13 int main() {
14 return foo() + foo();