diff options
Diffstat (limited to 'test/profile/Inputs/instrprof-gcov-switch2.c')
-rw-r--r-- | test/profile/Inputs/instrprof-gcov-switch2.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/profile/Inputs/instrprof-gcov-switch2.c b/test/profile/Inputs/instrprof-gcov-switch2.c new file mode 100644 index 000000000000..14e8a84de507 --- /dev/null +++ b/test/profile/Inputs/instrprof-gcov-switch2.c @@ -0,0 +1,18 @@ +int main(void) +{ + int i = 22; + + switch (i) { + case 7: + break; + + case 22: + i = 7; + + case 42: + i = 22; + break; + } + + return 0; +} |