-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// RUN: interp %s | FileCheck %s | ||
// RCGWR A tuple type must contain at least 2 elements. | ||
|
||
// This is expected to be a valid ASL specification. All tuples have at least 2 elements. | ||
// see Rcgwr-2.asl for a negative test with tuples with 0 and 1 elements. | ||
|
||
type a_t of (integer, boolean); | ||
type b_t of (integer, boolean, bits(32)); | ||
|
||
|
||
func main() => b_t | ||
begin | ||
var a : a_t = (42, TRUE); | ||
var b : b_t = (0, FALSE, Zeros(32)); | ||
|
||
return b; | ||
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