Skip to content

Commit 773d932

Browse files
committed
Add test for cpp.Pointer.ofArray with empty array
1 parent e7ebe4e commit 773d932

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

test/regression/Issue1028/Main.hx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Main {
2+
static function main() {
3+
var array:Array<Int> = [];
4+
cpp.Pointer.ofArray(array);
5+
trace(array.length);
6+
}
7+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--cpp bin
2+
-m Main
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Main.hx:5: 0

0 commit comments

Comments
 (0)