Skip to content

Commit a418682

Browse files
klauslerrlavaee
authored andcommitted
[flang] Add new hints to expected warnings (llvm#146399)
I added a new test with warnings, but warnings are now emitted with hints. Add them to the new test.
1 parent b063a88 commit a418682

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

flang/test/Semantics/bug1046.f90

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
2-
!WARNING: INTEGER(4) 0**0 is not defined
2+
!WARNING: INTEGER(4) 0**0 is not defined [-Wfolding-exception]
33
print *, 0**0
4-
!WARNING: REAL/COMPLEX 0**0 is not defined
4+
!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
55
print *, 0**0.
6-
!WARNING: invalid argument on power with INTEGER exponent
6+
!WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
77
print *, 0.0**0
8-
!WARNING: REAL/COMPLEX 0**0 is not defined
8+
!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
99
print *, 0.0**0.
10-
!WARNING: invalid argument on power with INTEGER exponent
10+
!WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
1111
print *, (0.0, 0.0)**0
12-
!WARNING: REAL/COMPLEX 0**0 is not defined
12+
!WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
1313
print *, (0.0, 0.0)**0.
1414
print *, (0.0, 0.0)**2.5
1515
end
16-
17-

0 commit comments

Comments
 (0)