summaryrefslogtreecommitdiffstats
path: root/tests/rust/typedef.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/typedef.rs')
-rw-r--r--tests/rust/typedef.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rust/typedef.rs b/tests/rust/typedef.rs
new file mode 100644
index 0000000..bf7ceb8
--- /dev/null
+++ b/tests/rust/typedef.rs
@@ -0,0 +1,11 @@
+#[repr(C)]
+struct Foo<T, U> {
+ x: T,
+ y: U,
+}
+
+type IntFoo<T> = Foo<i32, T>;
+
+#[no_mangle]
+pub extern "C" fn root(a: IntFoo<i32>)
+{ }