diff options
author | arphaman <arphaman@gmail.com> | 2013-07-24 14:48:03 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-07-24 14:48:03 +0100 |
commit | ed590604f4cf71a16d71cd18358f307d186de55c (patch) | |
tree | e1e3366373aa8f17e29a23b03694e314872b2652 /test/Parser | |
parent | 23292c947a37c89d024299768f9de4c17211d268 (diff) | |
download | flang-ed590604f4cf71a16d71cd18358f307d186de55c.tar.gz |
improved construct termination and control flow error recovery
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/do.f95 | 3 | ||||
-rw-r--r-- | test/Parser/if.f95 | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/Parser/do.f95 b/test/Parser/do.f95 index 2f3d69a94a..d732f491a7 100644 --- a/test/Parser/do.f95 +++ b/test/Parser/do.f95 @@ -50,7 +50,6 @@ PROGRAM dotest ENDDO DO x I = 1,2 ! expected-error {{expected '='}} - ! END DO + END DO - DO I = 1,5 ! expected-error@+1 {{expected 'END DO'}} END PROGRAM diff --git a/test/Parser/if.f95 b/test/Parser/if.f95 index 2c3397bc13..7657c53155 100644 --- a/test/Parser/if.f95 +++ b/test/Parser/if.f95 @@ -56,6 +56,6 @@ PROGRAM iftest ENDIF END IF - IF(1 == 2) THEN - C = "NO" ! expected-error@+1 {{expected 'END IF'}} + IF(1 == 2) THEN ! expected-note {{to match this 'if'}} + C = "NO" ! expected-error@+1 {{expected 'end if'}} END PROGRAM iftest |