diff options
author | arphaman <arphaman@gmail.com> | 2013-08-22 18:15:00 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-08-22 18:15:00 +0100 |
commit | e2da5464bd560f00e7bbf54f3a6bbad470bfe1b0 (patch) | |
tree | d44e9f7200987efb6d5f880ac9a61e522c87ca26 /test/Parser | |
parent | 9efee8c10aac1e0de9821211c5f9d71dbed62a4e (diff) | |
download | flang-e2da5464bd560f00e7bbf54f3a6bbad470bfe1b0.tar.gz |
added parsing for RECURSIVE
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/recursive.f | 6 | ||||
-rw-r--r-- | test/Parser/recursive.f95 | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/Parser/recursive.f b/test/Parser/recursive.f new file mode 100644 index 0000000000..0f6f648e25 --- /dev/null +++ b/test/Parser/recursive.f @@ -0,0 +1,6 @@ +C RUN: %flang -fsyntax-only %s + + RECURSI VE SUB ROUTINE SU B() + END + RECU RSIV E FUNCTIO N F OO() + END diff --git a/test/Parser/recursive.f95 b/test/Parser/recursive.f95 new file mode 100644 index 0000000000..02dc821990 --- /dev/null +++ b/test/Parser/recursive.f95 @@ -0,0 +1,10 @@ +! RUN: %flang -fsyntax-only -verify < %s + +RECURSIVE SUBROUTINE SUB() +END + +RECURSIVE FUNCTION FOO() +END + +RECURSIVE PROGRAM main ! expected-error {{expected 'function' or 'subroutine' after 'recursive'}} +END |