forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make groups more generic (PR gcov-profile/84548).
2018-02-27 Martin Liska <mliska@suse.cz> PR gcov-profile/84548 * gcov.c (process_file): Allow partial overlap and consider it also as group functions. (output_lines): Properly calculate range of lines for a group. 2018-02-27 Martin Liska <mliska@suse.cz> PR gcov-profile/84548 * g++.dg/gcov/pr84548.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258033 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
marxin
committed
Feb 27, 2018
1 parent
cb2964e
commit 2d99ce8
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// PR gcov-profile/84548 | ||
// { dg-options "-fprofile-arcs -ftest-coverage" } | ||
// { dg-do run { target native } } | ||
// TODO: add support for groups to gcov.exp script | ||
|
||
struct A { static int foo () { return 1; }; static int bar () { | ||
int x; | ||
return 2; } }; | ||
|
||
int main() | ||
{ | ||
int a = A::foo () + A::bar (); | ||
if (a != 3) | ||
return 1; | ||
|
||
return 0; | ||
} | ||
|
||
// { dg-final { run-gcov remove-gcda pr84548.C } } |