diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expectations/tests/nested-template-typedef.rs | 17 | ||||
-rw-r--r-- | tests/headers/nested-template-typedef.hpp | 8 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/expectations/tests/nested-template-typedef.rs b/tests/expectations/tests/nested-template-typedef.rs new file mode 100644 index 00000000..ab761d28 --- /dev/null +++ b/tests/expectations/tests/nested-template-typedef.rs @@ -0,0 +1,17 @@ +#![allow( + dead_code, + non_snake_case, + non_camel_case_types, + non_upper_case_globals +)] + +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Foo { + pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Foo_Bar { + pub _address: u8, +} diff --git a/tests/headers/nested-template-typedef.hpp b/tests/headers/nested-template-typedef.hpp new file mode 100644 index 00000000..8c83de5b --- /dev/null +++ b/tests/headers/nested-template-typedef.hpp @@ -0,0 +1,8 @@ +template<typename T> +class Foo { +public: + template<typename U> + struct Bar { + typedef Foo<U> FooU; + }; +}; |