diff options
author | arphaman <arphaman@gmail.com> | 2013-07-25 15:42:10 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-07-25 15:42:10 +0100 |
commit | b5d57179840a57a6bb9e2ca8e7bf8cedc272eaf3 (patch) | |
tree | d190033fb8fb22454bb9afae101e11a3b282c29c /test/Parser | |
parent | 01675b14acc58aac2465433019d31204517227cf (diff) | |
download | flang-b5d57179840a57a6bb9e2ca8e7bf8cedc272eaf3.tar.gz |
added parsing for optional comma in a data stmt
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/data.f95 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Parser/data.f95 b/test/Parser/data.f95 index 7cf9837858..3abc8d76e2 100644 --- a/test/Parser/data.f95 +++ b/test/Parser/data.f95 @@ -1,7 +1,7 @@ ! RUN: %flang -fsyntax-only -verify < %s PROGRAM datatest INTEGER I, J, K - REAL X,Y,Z + REAL X,Y,Z, A, B INTEGER I_ARR(10) DATA I / 1 / @@ -11,6 +11,8 @@ PROGRAM datatest DATA X, Y / 1 2 / ! expected-error {{expected '/'}} + DATA A/1/,B/2/ + DATA ! expected-error {{expected an expression}} ! FIXME: sema |