forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Fix crash from fuzzy test. (llvm#122364)
Fixes llvm#122002.
- Loading branch information
1 parent
4a06ed1
commit b2e7a4a
Showing
5 changed files
with
63 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
! RUN: %python %S/test_errors.py %s %flang_fc1 | ||
! ERROR: Missing initialization for parameter 'n' | ||
! ERROR: Must be a scalar value, but is a rank-1 array | ||
integer, parameter :: n(n) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
! RUN: %python %S/test_errors.py %s %flang_fc1 | ||
SUBROUTINE sub00(a,b,n,m) | ||
complex(2) n,m | ||
! ERROR: Must have INTEGER type, but is COMPLEX(2) | ||
! ERROR: Must have INTEGER type, but is COMPLEX(2) | ||
! ERROR: The type of 'b' has already been implicitly declared | ||
complex(3) a(n,m), b(size((LOG ((x * (a) - a + b / a - a))+1 - x))) | ||
a = a ** n | ||
! ERROR: DO controls should be INTEGER | ||
DO 10 j = 1,m | ||
a = n ** a | ||
10 PRINT *, g | ||
END SUBROUTINE sub00 |