diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-07 16:44:07 -1000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-07 16:44:07 -1000 |
commit | c3685effcee7c49a747b2e149432f4113bc22713 (patch) | |
tree | b5694d8ed88afd87efd92f3e1f90f2b06346e1c9 /libbindgen/tests | |
parent | 5e10791fdea72f2d4ca80b1f6b90ac25c415048c (diff) |
ir: Add test for #315
Fixes #315
Diffstat (limited to 'libbindgen/tests')
-rw-r--r-- | libbindgen/tests/expectations/tests/issue_315.rs | 8 | ||||
-rw-r--r-- | libbindgen/tests/headers/issue_315.hpp | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libbindgen/tests/expectations/tests/issue_315.rs b/libbindgen/tests/expectations/tests/issue_315.rs new file mode 100644 index 00000000..a5ab63fc --- /dev/null +++ b/libbindgen/tests/expectations/tests/issue_315.rs @@ -0,0 +1,8 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +/// <div rustbindgen replaces="c"></div> +pub type c<a> = a; diff --git a/libbindgen/tests/headers/issue_315.hpp b/libbindgen/tests/headers/issue_315.hpp new file mode 100644 index 00000000..e58cb5e3 --- /dev/null +++ b/libbindgen/tests/headers/issue_315.hpp @@ -0,0 +1,2 @@ +/// <div rustbindgen replaces="c"></div> +template <typename a> using b = a; |