forked from chapel-lang/chapel
-
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.
Add test locking in issue chapel-lang#14813
@cassella noticed that this is now passing a few weeks back --- Signed-off-by: Brad Chamberlain <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
record Rec | ||
{ | ||
var num : int; | ||
proc init( n: int ) { num = n; } // 0-arg init() not defined | ||
} | ||
|
||
proc main() | ||
{ | ||
var x = new Rec(n = 1); // this works | ||
writeln( "x = ", x, ", type = ", x.type:string ); | ||
|
||
var r = [ new Rec(n = 1) ]; // this fails | ||
writeln( "r = ", r, ", type = ", r.type:string ); | ||
} |
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,2 @@ | ||
x = (num = 1), type = Rec | ||
r = (num = 1), type = [domain(1,int(64),one)] Rec |