diff options
author | arphaman <arphaman@gmail.com> | 2013-09-20 10:48:52 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-09-20 10:48:52 +0100 |
commit | c0ed80175fcf599a6afee4282c322f4998a4903e (patch) | |
tree | 652cf0dcb98b18306d503423c63755dcb565c38e /test/Parser | |
parent | 3000ac6a9047461463cd159f263a3509411a9e47 (diff) | |
download | flang-c0ed80175fcf599a6afee4282c322f4998a4903e.tar.gz |
added parsing for COMMON statement
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/common.f95 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Parser/common.f95 b/test/Parser/common.f95 new file mode 100644 index 0000000000..003d4ec6e8 --- /dev/null +++ b/test/Parser/common.f95 @@ -0,0 +1,15 @@ +! RUN: %flang -fsyntax-only -verify < %s + +program test + integer x,y,z,w,i,j,k + real r + + common x,y, /a/ z, /w/ w + common /a/ i(10,-5:8) + common // j,k + common / / r + + common /a/ ! expected-error {{expected identifier}} + common ! expected-error {{expected identifier}} + +end program |