summaryrefslogtreecommitdiff
path: root/Tests/Fortran/test_preprocess.F90
blob: e4f1fbe7681d1f212a14066d0546dfe9751b5b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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>

#include "test_preprocess.h"

END PROGRAM