diff options
author | arphaman <arphaman@gmail.com> | 2013-08-01 15:05:21 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-08-01 15:05:21 +0100 |
commit | 9c10d6a7ec4d6b04748f3768677075f1e004a5f4 (patch) | |
tree | 76099010c380802c12f1a06edba21317c304ba88 /test/Parser | |
parent | 24c31b774d10d5eb8190cd5b03928dff9b201ff9 (diff) | |
download | flang-9c10d6a7ec4d6b04748f3768677075f1e004a5f4.tar.gz |
added support for named if and do constructs
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/fixedFormNamedConstructs.f | 11 | ||||
-rw-r--r-- | test/Parser/namedConstructs.f95 | 18 |
2 files changed, 29 insertions, 0 deletions
diff --git a/test/Parser/fixedFormNamedConstructs.f b/test/Parser/fixedFormNamedConstructs.f new file mode 100644 index 0000000000..92b97ce3a4 --- /dev/null +++ b/test/Parser/fixedFormNamedConstructs.f @@ -0,0 +1,11 @@ +* RUN: %flang -fsyntax-only %s + PROGRAM test + c:DOI=1,10 + ENDDOc + b:DOWHILE(.false.) + ENDDOb + a:IF(.true.)THEN + ELSEIF(.false.)THENa + ELSEa + ENDIFa + END diff --git a/test/Parser/namedConstructs.f95 b/test/Parser/namedConstructs.f95 new file mode 100644 index 0000000000..b8c8d516ab --- /dev/null +++ b/test/Parser/namedConstructs.f95 @@ -0,0 +1,18 @@ +! RUN: %flang -fsyntax-only < %s +PROGRAM test + + a: IF(.false.) THEN + END IF a + + b: DO I = 1,10 + END DO b + +1 c: DO WHILE(.false.) + END DO c + + d: IF(.true.) THEN + ELSE IF(.false.) THEN d + ELSE d + END IF d + +END |