summaryrefslogtreecommitdiffstats
path: root/tests/assembly/thin-lto.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/assembly/thin-lto.rs')
-rw-r--r--tests/assembly/thin-lto.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/assembly/thin-lto.rs b/tests/assembly/thin-lto.rs
new file mode 100644
index 000000000..deb8fd21d
--- /dev/null
+++ b/tests/assembly/thin-lto.rs
@@ -0,0 +1,8 @@
+// compile-flags: -O -C lto=thin -C prefer-dynamic=no
+// only-x86_64-unknown-linux-gnu
+// assembly-output: emit-asm
+
+// CHECK: main
+
+pub fn main() {
+}