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
5252run-make/min-global-align/Makefile
5353run-make/native-link-modifier-bundle/Makefile
5454run-make/no-alloc-shim/Makefile
55- run-make/no-builtins-attribute/Makefile
5655run-make/no-duplicate-libs/Makefile
5756run-make/panic-abort-eh_frame/Makefile
5857run-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