Files
clang-p2996/flang/test/Semantics/bug1046.f90
Peter Klausler 2d825cc3af [flang] Add new hints to expected warnings (#146399)
I added a new test with warnings, but warnings are now emitted with
hints. Add them to the new test.
2025-06-30 11:19:05 -07:00

16 lines
621 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
!WARNING: INTEGER(4) 0**0 is not defined [-Wfolding-exception]
print *, 0**0
!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
print *, 0**0.
!WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
print *, 0.0**0
!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
print *, 0.0**0.
!WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
print *, (0.0, 0.0)**0
!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
print *, (0.0, 0.0)**0.
print *, (0.0, 0.0)**2.5
end