diff options
author | arphaman <arphaman@gmail.com> | 2013-08-24 13:07:13 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-08-24 13:07:13 +0100 |
commit | e28fda69d74df9419587ed66856256ce70ac5535 (patch) | |
tree | 375dd76b0a046aab5c692cc20116ec1b09e2f532 /test/Parser | |
parent | b07941ac2b6a689920fc39c1489b986edeb7f9f9 (diff) | |
download | flang-e28fda69d74df9419587ed66856256ce70ac5535.tar.gz |
fixed complex literal bug
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/complexConstants.f95 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/complexConstants.f95 b/test/Parser/complexConstants.f95 index de948b4f76..ac60a5282f 100644 --- a/test/Parser/complexConstants.f95 +++ b/test/Parser/complexConstants.f95 @@ -1,10 +1,13 @@ ! RUN: %flang -fsyntax-only -verify < %s PROGRAM constants COMPLEX C + PARAMETER (ZERO = 0.0) + C = (1.0,2.0) C = (2.343,1E-4) C = (4,3) C = (-1,0) + C = (ZERO, ZERO) C = (1, .false.) ! expected-error {{expected an integer or a real constant expression}} END PROGRAM constants |