summaryrefslogtreecommitdiff
path: root/test/Parser
diff options
context:
space:
mode:
authorarphaman <arphaman@gmail.com>2013-09-20 10:48:52 +0100
committerarphaman <arphaman@gmail.com>2013-09-20 10:48:52 +0100
commitc0ed80175fcf599a6afee4282c322f4998a4903e (patch)
tree652cf0dcb98b18306d503423c63755dcb565c38e /test/Parser
parent3000ac6a9047461463cd159f263a3509411a9e47 (diff)
downloadflang-c0ed80175fcf599a6afee4282c322f4998a4903e.tar.gz
added parsing for COMMON statement
Diffstat (limited to 'test/Parser')
-rw-r--r--test/Parser/common.f9515
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