diff options
author | Marco Castelluccio <mcastelluccio@mozilla.com> | 2018-07-16 09:13:46 +0000 |
---|---|---|
committer | Marco Castelluccio <mcastelluccio@mozilla.com> | 2018-07-16 09:13:46 +0000 |
commit | 0a75de4bfe51ea27465123965f02caa6bd00c197 (patch) | |
tree | 63d29f26d402da6a6af88e8bf6761c233ed96942 /compiler-rt/test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c | |
parent | f854ce84c4cc676ff16adbe819db3bcfd325dabf (diff) | |
download | bcm5719-llvm-0a75de4bfe51ea27465123965f02caa6bd00c197.tar.gz bcm5719-llvm-0a75de4bfe51ea27465123965f02caa6bd00c197.zip |
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
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.c | 13 |
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; +} |