Fix previous commit.
diff --git a/tests/ffi/lib.rs b/tests/ffi/lib.rs
index 0162c9b..16846fb 100644
--- a/tests/ffi/lib.rs
+++ b/tests/ffi/lib.rs
@@ -84,6 +84,15 @@
fn set2(&mut self, n: usize) -> usize;
}
+ extern "C" {
+ type COwnedEnum;
+ }
+
+ enum COwnedEnum {
+ CVal1,
+ CVal2,
+ }
+
extern "Rust" {
type R;
type R2;
diff --git a/tests/ffi/tests.h b/tests/ffi/tests.h
index d3b7d38..795b4a9 100644
--- a/tests/ffi/tests.h
+++ b/tests/ffi/tests.h
@@ -23,6 +23,11 @@
std::vector<uint8_t> v;
};
+enum COwnedEnum {
+ CVal1,
+ CVal2,
+};
+
size_t c_return_primitive();
Shared c_return_shared();
rust::Box<R> c_return_box();