aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index e3c646f5ee..b44dc6ac7a 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -369,8 +369,15 @@ pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 {
print_str("OK\n");
}
+ if (get_array_len(array) != 5) {
+ print_str("BAD\n");
+ }
+
return 0;
}
+fn get_array_len(a: []u32) -> usize {
+ a.len
+}
)SOURCE", "OK\n");