summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c')
-rw-r--r--compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c b/compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c
new file mode 100644
index 00000000000..7b24d69c75f
--- /dev/null
+++ b/compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c
@@ -0,0 +1,13 @@
+int main(void) {
+ int i = 22;
+
+ __gcov_flush();
+
+ i = 42;
+
+ asm("int $3");
+
+ i = 84;
+
+ return 0;
+}
OpenPOWER on IntegriCloud