1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -Werror -pedantic
2 !PORTABILITY: nonstandard usage: generalized COMPLEX constructor
3 !PORTABILITY: Real part of complex constructor is not scalar
4 complex, parameter :: z1(*) = ([1.,2.], 3.)
5 !PORTABILITY: nonstandard usage: generalized COMPLEX constructor
6 !PORTABILITY: Imaginary part of complex constructor is not scalar
7 complex, parameter :: z2(*) = (4., [5.,6.])
8 real, parameter :: aa(*) = [7.,8.]
9 !PORTABILITY: Real part of complex literal constant is not scalar
10 complex, parameter :: z3(*) = (aa
, 9.)
11 !PORTABILITY: Imaginary part of complex literal constant is not scalar
12 complex, parameter :: z4(*) = (10., aa
)
13 !We need a nonzero exit status to make test_errors.py look at messages :-(
14 !WARNING: division by zero
15 real, parameter :: xxx
= 1./0.