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 10dc58f commit a5d6e8fCopy full SHA for a5d6e8f
test/test_preproc.py
@@ -34,8 +34,9 @@ def check_return(result_array, checks):
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)
+ string += hover_req(file_path, 15, 12)
+ string += hover_req(file_path, 19, 15)
39
+ string += hover_req(file_path, 21, 10)
40
config = str(root_dir / ".pp_conf.json")
41
errcode, results = run_request(string, ["--config", config])
42
assert errcode == 0
@@ -59,6 +60,7 @@ def check_return(result_array, checks):
59
60
"```fortran90\nREAL :: var1\n```",
61
"```fortran90\nLOGICAL :: var1\n```",
62
"```fortran90\nINTEGER :: var2\n```",
63
+ "```fortran90\nINTEGER, INTENT(INOUT) :: var\n```",
64
)
65
assert len(ref_results) == len(results) - 1
66
check_return(results[1:], ref_results)
test/test_source/pp/preproc_elif.F90
@@ -2,10 +2,15 @@ subroutine preprocessor_elif(var)
2
3
#if 0
4
#define MYTYPE character
5
+integer, intent(in) :: var
6
#elif 1
7
#define MYTYPE logical
8
+integer, intent(inout) :: var
9
+var = 3
10
#else
11
#define MYTYPE integer
12
+integer, intent(out) :: var
13
+var = 5
14
#endif
15
16
MYTYPE :: var1
@@ -14,4 +19,6 @@ subroutine preprocessor_elif(var)
19
20
OTHERTYPE :: var2
21
22
+PRINT*, var
23
+
17
24
endsubroutine preprocessor_elif
0 commit comments