[flang-commits] [flang] 2d825cc - [flang] Add new hints to expected warnings (#146399)
via flang-commits
flang-commits at lists.llvm.org
Mon Jun 30 11:19:09 PDT 2025
Author: Peter Klausler
Date: 2025-06-30T11:19:05-07:00
New Revision: 2d825cc3af4ec86264d2248d230d7f4afb69fc64
URL: https://github.com/llvm/llvm-project/commit/2d825cc3af4ec86264d2248d230d7f4afb69fc64
DIFF: https://github.com/llvm/llvm-project/commit/2d825cc3af4ec86264d2248d230d7f4afb69fc64.diff
LOG: [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.
Added:
Modified:
flang/test/Semantics/bug1046.f90
Removed:
################################################################################
diff --git a/flang/test/Semantics/bug1046.f90 b/flang/test/Semantics/bug1046.f90
index a266651f90c31..dc5c470621387 100644
--- a/flang/test/Semantics/bug1046.f90
+++ b/flang/test/Semantics/bug1046.f90
@@ -1,17 +1,15 @@
! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
-!WARNING: INTEGER(4) 0**0 is not defined
+!WARNING: INTEGER(4) 0**0 is not defined [-Wfolding-exception]
print *, 0**0
-!WARNING: REAL/COMPLEX 0**0 is not defined
+!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
print *, 0**0.
-!WARNING: invalid argument on power with INTEGER exponent
+!WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
print *, 0.0**0
-!WARNING: REAL/COMPLEX 0**0 is not defined
+!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
print *, 0.0**0.
-!WARNING: invalid argument on power with INTEGER exponent
+!WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
print *, (0.0, 0.0)**0
-!WARNING: REAL/COMPLEX 0**0 is not defined
+!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
print *, (0.0, 0.0)**0.
print *, (0.0, 0.0)**2.5
end
-
-
More information about the flang-commits
mailing list