forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
including the case shown in issue chapel-lang#17241. --- Signed-off-by: Michael Ferguson <mppf@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
test/functions/intents/inout/in-conversion-inout-slice-formal-generic.chpl
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,12 @@ | ||
proc f(inout arg) { | ||
compilerWarning("in f, arg.type is ", arg.type:string); | ||
writeln("in f, arg= ", arg); | ||
arg = 1; | ||
} | ||
{ | ||
var A:[1..10] int; | ||
ref slice = A[1..3]; | ||
f(slice); | ||
writeln(slice); | ||
writeln(A); | ||
} |
2 changes: 2 additions & 0 deletions
2
test/functions/intents/inout/in-conversion-inout-slice-formal-generic.future
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 @@ | ||
bug: core dump when passing a slice to a generic inout formal | ||
#17241 |
4 changes: 4 additions & 0 deletions
4
test/functions/intents/inout/in-conversion-inout-slice-formal-generic.good
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,4 @@ | ||
bb.chpl:9: warning: [domain(1,int(64),false)] int(64) | ||
in f, arg= 0 0 0 | ||
1 1 1 | ||
1 1 1 0 0 0 0 0 0 0 |
1 change: 1 addition & 0 deletions
1
test/functions/intents/inout/in-conversion-inout-slice-formal-generic.skipif
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 @@ | ||
CHPL_TEST_VGRND_EXE!=on |
12 changes: 0 additions & 12 deletions
12
...ents/inout/in-conversion-inout-slice.chpl → ...-conversion-inout-slice-formal-typed.chpl
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
2 changes: 2 additions & 0 deletions
2
test/functions/intents/inout/in-conversion-inout-slice-formal-typed.good
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 @@ | ||
in g, arg= 0 0 0 | ||
2 2 2 |