aboutsummaryrefslogtreecommitdiffhomepage
path: root/development/gcov/cov.cc
diff options
context:
space:
mode:
Diffstat (limited to 'development/gcov/cov.cc')
-rw-r--r--development/gcov/cov.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/development/gcov/cov.cc b/development/gcov/cov.cc
new file mode 100644
index 0000000..3737d81
--- /dev/null
+++ b/development/gcov/cov.cc
@@ -0,0 +1,17 @@
+// Copyright (C) 2023 johannst
+
+#include <cstdio>
+
+void tell_me(int desc) {
+ if (desc & 1) {
+ std::puts("this");
+ } else {
+ std::puts("that");
+ }
+}
+
+int main(int argc, char *argv[]) {
+ tell_me(argc);
+ tell_me(argc);
+ return 0;
+}