Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / expr-errors05.f90
blob964511888d5ef65c457321aeb3516e8c672db5d5
1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -Werror
2 !PORTABILITY: Real part of complex constructor is not scalar
3 complex, parameter :: z1(*) = ([1.,2.], 3.)
4 !PORTABILITY: Imaginary part of complex constructor is not scalar
5 complex, parameter :: z2(*) = (4., [5.,6.])
6 real, parameter :: aa(*) = [7.,8.]
7 !PORTABILITY: Real part of complex literal constant is not scalar
8 complex, parameter :: z3(*) = (aa, 9.)
9 !PORTABILITY: Imaginary part of complex literal constant is not scalar
10 complex, parameter :: z4(*) = (10., aa)
11 !We need a nonzero exit status to make test_errors.py look at messages :-(
12 !WARNING: division by zero
13 real, parameter :: xxx = 1./0.
14 end