Skip to content

test: Add test for keywords from upstream. #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions tests/expectations/keywords.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


extern "C" {
pub static mut u8: ::std::os::raw::c_int;
pub static mut u16: ::std::os::raw::c_int;
pub static mut u32: ::std::os::raw::c_int;
pub static mut u64: ::std::os::raw::c_int;
pub static mut i8: ::std::os::raw::c_int;
pub static mut i16: ::std::os::raw::c_int;
pub static mut i32: ::std::os::raw::c_int;
pub static mut i64: ::std::os::raw::c_int;
pub static mut f32: ::std::os::raw::c_int;
pub static mut f64: ::std::os::raw::c_int;
pub static mut usize: ::std::os::raw::c_int;
pub static mut isize: ::std::os::raw::c_int;
#[link_name = "as"]
pub static mut as_: ::std::os::raw::c_int;
#[link_name = "box"]
pub static mut box_: ::std::os::raw::c_int;
#[link_name = "crate"]
pub static mut crate_: ::std::os::raw::c_int;
#[link_name = "false"]
pub static mut false_: ::std::os::raw::c_int;
#[link_name = "fn"]
pub static mut fn_: ::std::os::raw::c_int;
#[link_name = "impl"]
pub static mut impl_: ::std::os::raw::c_int;
#[link_name = "in"]
pub static mut in_: ::std::os::raw::c_int;
#[link_name = "let"]
pub static mut let_: ::std::os::raw::c_int;
#[link_name = "loop"]
pub static mut loop_: ::std::os::raw::c_int;
#[link_name = "match"]
pub static mut match_: ::std::os::raw::c_int;
#[link_name = "mod"]
pub static mut mod_: ::std::os::raw::c_int;
#[link_name = "move"]
pub static mut move_: ::std::os::raw::c_int;
#[link_name = "mut"]
pub static mut mut_: ::std::os::raw::c_int;
#[link_name = "pub"]
pub static mut pub_: ::std::os::raw::c_int;
#[link_name = "ref"]
pub static mut ref_: ::std::os::raw::c_int;
#[link_name = "self"]
pub static mut self_: ::std::os::raw::c_int;
#[link_name = "Self"]
pub static mut Self_: ::std::os::raw::c_int;
#[link_name = "super"]
pub static mut super_: ::std::os::raw::c_int;
#[link_name = "trait"]
pub static mut trait_: ::std::os::raw::c_int;
#[link_name = "true"]
pub static mut true_: ::std::os::raw::c_int;
#[link_name = "type"]
pub static mut type_: ::std::os::raw::c_int;
#[link_name = "unsafe"]
pub static mut unsafe_: ::std::os::raw::c_int;
#[link_name = "use"]
pub static mut use_: ::std::os::raw::c_int;
#[link_name = "where"]
pub static mut where_: ::std::os::raw::c_int;
#[link_name = "abstract"]
pub static mut abstract_: ::std::os::raw::c_int;
#[link_name = "alignof"]
pub static mut alignof_: ::std::os::raw::c_int;
#[link_name = "become"]
pub static mut become_: ::std::os::raw::c_int;
#[link_name = "final"]
pub static mut final_: ::std::os::raw::c_int;
#[link_name = "macro"]
pub static mut macro_: ::std::os::raw::c_int;
#[link_name = "offsetof"]
pub static mut offsetof_: ::std::os::raw::c_int;
#[link_name = "override"]
pub static mut override_: ::std::os::raw::c_int;
#[link_name = "priv"]
pub static mut priv_: ::std::os::raw::c_int;
#[link_name = "proc"]
pub static mut proc_: ::std::os::raw::c_int;
#[link_name = "pure"]
pub static mut pure_: ::std::os::raw::c_int;
#[link_name = "unsized"]
pub static mut unsized_: ::std::os::raw::c_int;
#[link_name = "virtual"]
pub static mut virtual_: ::std::os::raw::c_int;
#[link_name = "yield"]
pub static mut yield_: ::std::os::raw::c_int;
}
49 changes: 49 additions & 0 deletions tests/headers/keywords.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
int u8;
int u16;
int u32;
int u64;
int i8;
int i16;
int i32;
int i64;
int f32;
int f64;
int usize;
int isize;
int as;
int box;
int crate;
int false;
int fn;
int impl;
int in;
int let;
int loop;
int match;
int mod;
int move;
int mut;
int pub;
int ref;
int self;
int Self;
int super;
int trait;
int true;
int type;
int unsafe;
int use;
int where;
int abstract;
int alignof;
int become;
int final;
int macro;
int offsetof;
int override;
int priv;
int proc;
int pure;
int unsized;
int virtual;
int yield;