about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-30 13:33:32 +0000
committerbors <bors@rust-lang.org>2023-11-30 13:33:32 +0000
commit07921b50ba6dcb5b2984a1dba039a38d85bffba2 (patch)
tree031f6f5155ced1f6116baa9fa55e05c02f29b182 /tests/codegen
parent1670ff64bf1ccb2ad71068254b53725631c55864 (diff)
parentc41bf9603972362ee2936247d81b21d495081470 (diff)
downloadrust-07921b50ba6dcb5b2984a1dba039a38d85bffba2.tar.gz
rust-07921b50ba6dcb5b2984a1dba039a38d85bffba2.zip
Auto merge of #118036 - DianQK:thinlto-tests, r=tmiasko
Add thinlto support to codegen, assembly and coverage tests

Using `--emit=llvm-ir` with thinlto usually result in multiple IR files.
Resolve test case failure issue reported in #113923.
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() {
+}