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