https://github.com/Kitware/CMake
Raw File
Tip revision: 39c6ac5112382093f99d2ee375162cdec57e4aec authored by Brad King on 01 June 2020, 11:56:25 UTC
CMake 3.16.8
Tip revision: 39c6ac5
test_preprocess.F90
MODULE Available
! no content
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
back to top