diff options
author | Stephen Hines <srhines@google.com> | 2012-08-01 19:48:24 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2012-08-01 19:48:24 -0700 |
commit | 97df4339465d340c101cbcd4ed109569b2e4ec60 (patch) | |
tree | 652f2a91eae38de5576c7363f94b9d0f82edc7c5 /tests | |
parent | fe2b93dc9e7d4f193fe6d8c050e849f012ab0754 (diff) | |
download | slang-97df4339465d340c101cbcd4ed109569b2e4ec60.tar.gz |
Add test for constant array arguments to functions.
BUG=6902660
Change-Id: Ie4766fd6fe51eb4f6b195c91d44f27c3f6b83458
Diffstat (limited to 'tests')
-rw-r--r-- | tests/F_const_array_arg/const_array_arg.rs | 9 | ||||
-rw-r--r-- | tests/F_const_array_arg/stderr.txt.expect | 1 | ||||
-rw-r--r-- | tests/F_const_array_arg/stdout.txt.expect | 0 |
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/F_const_array_arg/const_array_arg.rs b/tests/F_const_array_arg/const_array_arg.rs new file mode 100644 index 0000000..0cbb776 --- /dev/null +++ b/tests/F_const_array_arg/const_array_arg.rs @@ -0,0 +1,9 @@ +#pragma version(1) +#pragma rs java_package_name(foo) + +void foo(float arr[3]) { +} + +void bar(float *ptr) { +} + diff --git a/tests/F_const_array_arg/stderr.txt.expect b/tests/F_const_array_arg/stderr.txt.expect new file mode 100644 index 0000000..1572005 --- /dev/null +++ b/tests/F_const_array_arg/stderr.txt.expect @@ -0,0 +1 @@ +const_array_arg.rs:4:10: error: parameters may not have array type: 'float [3]' diff --git a/tests/F_const_array_arg/stdout.txt.expect b/tests/F_const_array_arg/stdout.txt.expect new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/F_const_array_arg/stdout.txt.expect |