We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 779b62d commit 5dc27eaCopy full SHA for 5dc27ea
test/Language/Fortran/Parser/Free/Fortran2003Spec.hs
@@ -56,6 +56,13 @@ spec =
56
st = StUse () u (varGen "mod") Nothing Permissive (Just renames)
57
sParser "use :: mod, sprod => prod, a => b" `shouldBe'` st
58
59
+ it "parses simple procedure with no args" $ do
60
+ let st = StProcedure () u (Just (ProcInterfaceName () u (varGen "name")))
61
+ Nothing
62
+ (AList () u [ProcDecl () u (varGen "other_name") Nothing] )
63
+ sParser "procedure(name) :: other_name" `shouldBe'` st
64
+
65
66
it "parses procedure (interface-name, attribute, proc-decl)" $ do
67
let call = ExpFunctionCall () u (varGen "c") (aEmpty () u)
68
st = StProcedure () u (Just (ProcInterfaceName () u (varGen "a")))
0 commit comments