mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
18d682df79
If an inline function is observed but unused in a translation unit, dummy coverage mapping data with zero hash is stored for this function. If such a coverage mapping section came earlier than real one, the latter was ignored. As a result, llvm-cov was unable to show coverage information for those functions. Differential Revision: http://reviews.llvm.org/D20286 llvm-svn: 270194
6 lines
91 B
C++
6 lines
91 B
C++
#include "prefer_used_to_unused.h"
|
|
|
|
int main() {
|
|
return sampleFunc(5) + simpleFunc(5);
|
|
}
|