We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21bd331 commit faf6d7eCopy full SHA for faf6d7e
test/test_preproc.py
@@ -33,6 +33,9 @@ def check_return(result_array, checks):
33
file_path = root_dir / "preproc_else.F90"
34
string += hover_req(file_path, 8, 12)
35
string += hover_req(file_path, 18, 12)
36
+ file_path = root_dir / "preproc_elif.F90"
37
+ string += hover_req(file_path, 10, 12)
38
+ string += hover_req(file_path, 14, 15)
39
config = str(root_dir / ".pp_conf.json")
40
errcode, results = run_request(string, ["--config", config])
41
assert errcode == 0
@@ -54,6 +57,8 @@ def check_return(result_array, checks):
54
57
"```fortran90\nREAL, CONTIGUOUS, POINTER, DIMENSION(:) :: var1\n```",
55
58
"```fortran90\nINTEGER :: var0\n```",
56
59
"```fortran90\nREAL :: var1\n```",
60
+ "```fortran90\nLOGICAL :: var1\n```",
61
+ "```fortran90\nINTEGER :: var2\n```",
62
)
63
assert len(ref_results) == len(results) - 1
64
check_return(results[1:], ref_results)
test/test_source/pp/preproc_elif.F90
@@ -0,0 +1,17 @@
1
+subroutine preprocessor_elif(var)
2
+
3
+#if 0
4
+#define MYTYPE character
5
+#elif 1
6
+#define MYTYPE logical
7
+#else
8
+#define MYTYPE integer
9
+#endif
10
11
+MYTYPE :: var1
12
13
+#define OTHERTYPE integer
14
15
+OTHERTYPE :: var2
16
17
+endsubroutine preprocessor_elif
0 commit comments