diff options
author | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-15 18:29:47 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-15 18:30:12 +0200 |
commit | a953f1f6d56b3a1cc94c27cae5dcf0f9045f9a8e (patch) | |
tree | cd6a1a37f4a44ec76554b85ef6b2bf4e30286487 | |
parent | f89fe53c75ecd6550fb713e4aebd742f52d08523 (diff) |
tests: Add opaque pointer ammended test
-rw-r--r-- | tests/headers/opaque_pointer.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/headers/opaque_pointer.hpp b/tests/headers/opaque_pointer.hpp new file mode 100644 index 00000000..53f8ce1f --- /dev/null +++ b/tests/headers/opaque_pointer.hpp @@ -0,0 +1,22 @@ + +/** + * <div rustbindgen opaque></div> + */ +struct OtherOpaque { + int c; +}; + +/** + * <div rustbindgen opaque></div> + */ +template <typename T> +struct Opaque { + T whatever; +}; + +struct WithOpaquePtr { + Opaque<int>* whatever; + Opaque<float> other; + OtherOpaque t; +}; + |