0a203db5dc
In commit v3.3.0-rc1~352^2~3 (Genex: Allow COMPILE_LANGUAGE when processing compile definitions, 2015-03-04) the name of the variable used to pass preprocessor definitions to the Fortran dependency scanner was changed to be per-language, but the actual dependency scanning code was not updated accordingly. Update the code and add a test case. Reported-by: Radovan Bast <radovan.bast@gmail.com>
54 lines
723 B
Fortran
54 lines
723 B
Fortran
MODULE Available
|
|
! no conent
|
|
END MODULE
|
|
|
|
PROGRAM PPTEST
|
|
! value of InPPFalseBranch ; values of SkipToEnd
|
|
! 0 <empty>
|
|
#ifndef FOO
|
|
! 1 ; <0>
|
|
USE NotAvailable
|
|
# ifndef FOO
|
|
! 2 ; <0,0>
|
|
USE NotAvailable
|
|
# else
|
|
! 2 ; <0,0>
|
|
USE NotAvailable
|
|
# endif
|
|
! 1 ; <0>
|
|
# ifdef FOO
|
|
! 2 ; <0,1>
|
|
USE NotAvailable
|
|
# else
|
|
! 2 ; <0,1>
|
|
USE NotAvailable
|
|
# endif
|
|
! 1 ; <0>
|
|
#else
|
|
! 0 ; <0>
|
|
USE Available
|
|
# ifndef FOO
|
|
! 1 ; <0,0>
|
|
USE NotAvailable
|
|
# else
|
|
! 0 ; <0,0>
|
|
USE Available
|
|
# endif
|
|
! 0 ; <0>
|
|
# ifdef FOO
|
|
! 0 ; <0,1>
|
|
USE Available
|
|
# else
|
|
! 1 ; <0,1>
|
|
USE NotAvailable
|
|
# endif
|
|
! 0 ; <0>
|
|
#endif
|
|
! 0 ; <empty>
|
|
|
|
USE PPAvailable
|
|
|
|
#include "test_preprocess.h"
|
|
|
|
END PROGRAM
|