1int g1 = 0;
2int g2 = 1;
3
4void foo(int n) {
5 if (n % 5 == 0)
6 g1++;
7 else
8 g2++;
9}
10

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of compiler-rt/test/profile/Inputs/instrprof-shared-lib.c