mirror of
https://gitee.com/openharmony/third_party_rust_bindgen
synced 2025-03-02 11:47:44 +00:00
add tests
This commit is contained in:
parent
250150d015
commit
1704775d91
13
tests/expectations/tests/noreturn.rs
generated
Normal file
13
tests/expectations/tests/noreturn.rs
generated
Normal file
@ -0,0 +1,13 @@
|
||||
#![allow(
|
||||
dead_code,
|
||||
non_snake_case,
|
||||
non_camel_case_types,
|
||||
non_upper_case_globals
|
||||
)]
|
||||
|
||||
extern "C" {
|
||||
pub fn f() -> !;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn g();
|
||||
}
|
3
tests/headers/noreturn.h
Normal file
3
tests/headers/noreturn.h
Normal file
@ -0,0 +1,3 @@
|
||||
_Noreturn void f(void);
|
||||
// TODO (pvdrz): figure out how to handle this case.
|
||||
__attribute__((noreturn)) void g(void);
|
Loading…
x
Reference in New Issue
Block a user