Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Fortran code coverage

Albert1
Beginner
652 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
652 Views
0 Kudos
Reply