gcov: improve --coverage small example

Pushed to master.

gcc/ChangeLog:

	PR gcov-profile/95365
	* doc/gcov.texi: Compile and link one example in 2 steps.
This commit is contained in:
Martin Liska 2020-06-09 13:14:57 +02:00
parent 862b9b225f
commit 452283bd06
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785

View File

@ -528,7 +528,8 @@ for each line. For example, if your program is called @file{tmp.cpp}, this
is what you see when you use the basic @command{gcov} facility:
@smallexample
$ g++ --coverage tmp.cpp
$ g++ --coverage tmp.cpp -c
$ g++ --coverage tmp.o
$ a.out
$ gcov tmp.cpp -m
File 'tmp.cpp'