summary refs log tree commit diff
path: root/tests/run-make/fat-then-thin-lto/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/fat-then-thin-lto/lib.rs')
-rw-r--r--tests/run-make/fat-then-thin-lto/lib.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run-make/fat-then-thin-lto/lib.rs b/tests/run-make/fat-then-thin-lto/lib.rs
new file mode 100644
index 00000000000..c675dcb6e8a
--- /dev/null
+++ b/tests/run-make/fat-then-thin-lto/lib.rs
@@ -0,0 +1,13 @@
+#![allow(internal_features)]
+#![feature(no_core, lang_items)]
+#![no_core]
+#![crate_type = "rlib"]
+
+#[lang = "pointee_sized"]
+trait PointeeSized {}
+#[lang = "meta_sized"]
+trait MetaSized: PointeeSized {}
+#[lang = "sized"]
+trait Sized: MetaSized {}
+
+pub fn foo() {}