diff options
author | Stephen Hines <srhines@google.com> | 2011-05-09 13:05:04 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2011-05-09 13:05:04 -0700 |
commit | b6809edd6ee8b90982425fb8ad24e867708b46fc (patch) | |
tree | b8a56e0213a613b44a00f30e76eb168075ed88be /tests | |
parent | 3cb586aac38db959ad9edcda3c761c04f5162987 (diff) | |
download | slang-b6809edd6ee8b90982425fb8ad24e867708b46fc.tar.gz |
Provide multiple diagnostics when we can.
Change-Id: I2e13baa20cb7dd39ae2e00cd011771b1b8574357
Diffstat (limited to 'tests')
-rw-r--r-- | tests/F_multi_export_errors/multi_export_errors.rs | 13 | ||||
-rw-r--r-- | tests/F_multi_export_errors/stderr.txt.expect | 3 | ||||
-rw-r--r-- | tests/F_multi_export_errors/stdout.txt.expect | 0 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/F_multi_export_errors/multi_export_errors.rs b/tests/F_multi_export_errors/multi_export_errors.rs new file mode 100644 index 0000000..020fa14 --- /dev/null +++ b/tests/F_multi_export_errors/multi_export_errors.rs @@ -0,0 +1,13 @@ +#pragma version(1) +#pragma rs java_package_name(foo) + +int init(void) { + return 0; +} + +void root(void) { +} + +int foo(void) { + return 5; +} diff --git a/tests/F_multi_export_errors/stderr.txt.expect b/tests/F_multi_export_errors/stderr.txt.expect new file mode 100644 index 0000000..f982c30 --- /dev/null +++ b/tests/F_multi_export_errors/stderr.txt.expect @@ -0,0 +1,3 @@ +multi_export_errors.rs:4:5: error: init(void) is required to have a void return type +multi_export_errors.rs:8:6: error: root(void) is required to return an int for graphics usage +multi_export_errors.rs:11:5: error: invokable non-static functions are required to return void diff --git a/tests/F_multi_export_errors/stdout.txt.expect b/tests/F_multi_export_errors/stdout.txt.expect new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/F_multi_export_errors/stdout.txt.expect |