summaryrefslogtreecommitdiff
path: root/test/profile/Inputs/instrprof-gcov-switch1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile/Inputs/instrprof-gcov-switch1.c')
-rw-r--r--test/profile/Inputs/instrprof-gcov-switch1.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/profile/Inputs/instrprof-gcov-switch1.c b/test/profile/Inputs/instrprof-gcov-switch1.c
new file mode 100644
index 000000000..25544323c
--- /dev/null
+++ b/test/profile/Inputs/instrprof-gcov-switch1.c
@@ -0,0 +1,18 @@
+int main(void)
+{
+ int i = 22;
+
+ switch (i) {
+ case 7:
+ break;
+
+ case 22:
+ i = 7;
+ break;
+
+ case 42:
+ break;
+ }
+
+ return 0;
+}