Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Fortran code coverage

Albert1
Beginner
114 Views

In the documentation of the Intel Fortran 16.0 (and also in the newer manuals) it is stated:

Excluding Coverage at the Line and Function Level
You can mark individual lines for exclusion my passing string values to the -onelinedsbl option. For
example, assume that you have some code similar to the following:
Sample code

print*, "ERROR: n = ", n ! NO_COVER

and for "Excluding Code by Defining Arbitrary Boundaries":

! /* BINF */
print*, "ERROR: n = ", n
print*, " n2 = ", n2
! // EINF

For the multi line version this is working but the single line isn't. A small experiment showed that:

print*, "ERROR: n = ", n ! // NO_COVER

and

print*, "ERROR: n = ", n ! /* NO_COVER */

are working.

 

Did we make a mistake or is this an omission in the manual?

0 Kudos
1 Reply
Albert1
Beginner
114 Views
Reply