File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
! 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]
3
3
print * , 0 ** 0
4
- ! WARNING: REAL/COMPLEX 0**0 is not defined
4
+ ! WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
5
5
print * , 0 ** 0 .
6
- ! WARNING: invalid argument on power with INTEGER exponent
6
+ ! WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
7
7
print * , 0.0 ** 0
8
- ! WARNING: REAL/COMPLEX 0**0 is not defined
8
+ ! WARNING: REAL/COMPLEX 0**0 is not defined [-Wfolding-exception]
9
9
print * , 0.0 ** 0 .
10
- ! WARNING: invalid argument on power with INTEGER exponent
10
+ ! WARNING: invalid argument on power with INTEGER exponent [-Wfolding-exception]
11
11
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]
13
13
print * , (0.0 , 0.0 )** 0 .
14
14
print * , (0.0 , 0.0 )** 2.5
15
15
end
16
-
17
-
You can’t perform that action at this time.
0 commit comments