diff options
author | arphaman <arphaman@gmail.com> | 2013-08-05 12:58:18 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-08-05 12:58:18 +0100 |
commit | 7bf3255ea110256fd05fdc9ece7cc72ca2316e04 (patch) | |
tree | 6bf65d77f3fe181204e788c6a5b03b04e44af1b6 /test/Parser | |
parent | f4aa3fa33d6668057bcd3795eb9998b2f2ebc518 (diff) | |
download | flang-7bf3255ea110256fd05fdc9ece7cc72ca2316e04.tar.gz |
added parsing and sema for the SAVE stmt; improved spec diagnostics
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/save.f95 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Parser/save.f95 b/test/Parser/save.f95 new file mode 100644 index 0000000000..80d308ab92 --- /dev/null +++ b/test/Parser/save.f95 @@ -0,0 +1,16 @@ +! RUN: %flang -verify -fsyntax-only < %s + +SUBROUTINE FOO + INTEGER I + SAVE +END + +SUBROUTINE BAR + INTEGER I, J + SAVE I, J +END + +SUBROUTINE BAM + INTEGER K, L + SAVE K, 11 ! expected-error {{expected identifier}} +END |