File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
tests/run-make/no-builtins-attribute Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ run-make/macos-deployment-target/Makefile
52
52
run-make/min-global-align/Makefile
53
53
run-make/native-link-modifier-bundle/Makefile
54
54
run-make/no-alloc-shim/Makefile
55
- run-make/no-builtins-attribute/Makefile
56
55
run-make/no-duplicate-libs/Makefile
57
56
run-make/panic-abort-eh_frame/Makefile
58
57
run-make/pdb-buildinfo-cl-cmd/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // `no_builtins` is an attribute related to LLVM's optimizations. In order to ensure that it has an
2
+ // effect on link-time optimizations (LTO), it should be added to function declarations in a crate.
3
+ // This test uses the `llvm-filecheck` tool to determine that this attribute is successfully
4
+ // being added to these function declarations.
5
+ // See https://github.com/rust-lang/rust/pull/113716
6
+
7
+ use run_make_support:: { llvm_filecheck, rfs, rustc} ;
8
+
9
+ fn main ( ) {
10
+ rustc ( ) . input ( "no_builtins.rs" ) . emit ( "link" ) . run ( ) ;
11
+ rustc ( ) . input ( "main.rs" ) . emit ( "llvm-ir" ) . run ( ) ;
12
+ llvm_filecheck ( ) . patterns ( "filecheck.main.txt" ) . stdin ( rfs:: read ( "main.ll" ) ) . run ( ) ;
13
+ }
You can’t perform that action at this time.
0 commit comments