about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2023-11-18 20:01:01 +0800
committerDianQK <dianqk@dianqk.net>2023-11-30 18:48:03 +0800
commitc41bf9603972362ee2936247d81b21d495081470 (patch)
tree326b1c6bbbcab86b8dae378b3dbf2b692aaac497 /tests/codegen
parente1e60b6976ed51e9464d15a2888d90c577dda223 (diff)
downloadrust-c41bf9603972362ee2936247d81b21d495081470.tar.gz
rust-c41bf9603972362ee2936247d81b21d495081470.zip
Add thinlto support to codegen, assembly and coverage tests
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/thin-lto.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/codegen/thin-lto.rs b/tests/codegen/thin-lto.rs
new file mode 100644
index 00000000000..7991cad7a0c
--- /dev/null
+++ b/tests/codegen/thin-lto.rs
@@ -0,0 +1,7 @@
+// compile-flags: -O -C lto=thin -C prefer-dynamic=no
+// only-x86_64-unknown-linux-gnu
+
+// CHECK: main
+
+pub fn main() {
+}