summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2022-08-01 12:17:21 +0100
committerDarren Kulp <darren@kulp.ch>2022-08-09 13:44:30 -0500
commitb18bf798bef43c65af98520f9b58b6810aa2b17b (patch)
treed023d89ef4618860d9eb40cc4bde70cc9e19ccac /tests
parent4093e870c091438dbb9b6bbd7d5095ee3bda5359 (diff)
Add test coverage for 'await' and 'async' keywords
Add declarations for 'await' and 'async' variables to keywords.h and update the expectations in keywords.rs.
Diffstat (limited to 'tests')
-rw-r--r--tests/expectations/tests/keywords.rs8
-rw-r--r--tests/headers/keywords.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/expectations/tests/keywords.rs b/tests/expectations/tests/keywords.rs
index 055b0f00..a1e7f877 100644
--- a/tests/expectations/tests/keywords.rs
+++ b/tests/expectations/tests/keywords.rs
@@ -70,6 +70,14 @@ extern "C" {
pub static mut as_: ::std::os::raw::c_int;
}
extern "C" {
+ #[link_name = "\u{1}async"]
+ pub static mut async_: ::std::os::raw::c_int;
+}
+extern "C" {
+ #[link_name = "\u{1}await"]
+ pub static mut await_: ::std::os::raw::c_int;
+}
+extern "C" {
#[link_name = "\u{1}box"]
pub static mut box_: ::std::os::raw::c_int;
}
diff --git a/tests/headers/keywords.h b/tests/headers/keywords.h
index d7fe2065..3b3fc497 100644
--- a/tests/headers/keywords.h
+++ b/tests/headers/keywords.h
@@ -15,6 +15,8 @@ int str;
int dyn;
int as;
+int async;
+int await;
int box;
int crate;
int false;