summaryrefslogtreecommitdiffstats
path: root/tests/rust/exclude_generic_monomorph.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/exclude_generic_monomorph.rs')
-rw-r--r--tests/rust/exclude_generic_monomorph.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rust/exclude_generic_monomorph.rs b/tests/rust/exclude_generic_monomorph.rs
new file mode 100644
index 0000000..78fd197
--- /dev/null
+++ b/tests/rust/exclude_generic_monomorph.rs
@@ -0,0 +1,10 @@
+#[repr(transparent)]
+pub struct Foo(NonZeroU64);
+
+#[repr(C)]
+pub struct Bar {
+ foo: Option<Foo>,
+}
+
+#[no_mangle]
+pub extern "C" fn root(f: Bar) {}