brintos

brintos / llvm-project-archived public Read only

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