From 0a75de4bfe51ea27465123965f02caa6bd00c197 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Mon, 16 Jul 2018 09:13:46 +0000 Subject: Add a test with __gcov_flush called before terminating the program. Test for https://bugs.llvm.org/show_bug.cgi?id=38067. llvm-svn: 337150 --- .../profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c (limited to 'compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c') 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; +} -- cgit v1.2.1