xref: /llvm-project/compiler-rt/test/profile/Inputs/instrprof-gcov-switch1.c (revision ae43a27f9ce8794a6a543f26cbff49d88fe9c9f6)

main(void)1*ae43a27fSMarco Castelluccio int main(void)
2*ae43a27fSMarco Castelluccio {
3*ae43a27fSMarco Castelluccio   int i = 22;
4*ae43a27fSMarco Castelluccio 
5*ae43a27fSMarco Castelluccio   switch (i) {
6*ae43a27fSMarco Castelluccio     case 7:
7*ae43a27fSMarco Castelluccio       break;
8*ae43a27fSMarco Castelluccio 
9*ae43a27fSMarco Castelluccio     case 22:
10*ae43a27fSMarco Castelluccio       i = 7;
11*ae43a27fSMarco Castelluccio       break;
12*ae43a27fSMarco Castelluccio 
13*ae43a27fSMarco Castelluccio     case 42:
14*ae43a27fSMarco Castelluccio       break;
15*ae43a27fSMarco Castelluccio   }
16*ae43a27fSMarco Castelluccio 
17*ae43a27fSMarco Castelluccio   return 0;
18*ae43a27fSMarco Castelluccio }
19