diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/builtins.rs | 13 | ||||
-rw-r--r-- | tests/headers/builtin_va_list.h | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/builtins.rs b/tests/builtins.rs new file mode 100644 index 00000000..35cd573c --- /dev/null +++ b/tests/builtins.rs @@ -0,0 +1,13 @@ +#![feature(phase)] + +#[phase(plugin)] +extern crate bindgen; + +extern crate libc; + +#[test] +fn test_builtin_va_list() { + mod ffi { bindgen!("headers/builtin_va_list.h", emit_builtins = true); } + // Should test for more than compilation. +} + diff --git a/tests/headers/builtin_va_list.h b/tests/headers/builtin_va_list.h new file mode 100644 index 00000000..b3951bb7 --- /dev/null +++ b/tests/headers/builtin_va_list.h @@ -0,0 +1,6 @@ +#include "stdarg.h" + +struct a +{ + va_list b; +};
\ No newline at end of file |