mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
520081721c
After #113716, we can make `#![no_builtins]` crates participate in LTO again. `#![no_builtins]` with LTO does not result in undefined references to the error.
18 lines
395 B
Plaintext
18 lines
395 B
Plaintext
CHECK: define{{.*}} void @bar
|
|
CHECK-NEXT: call void @no_builtins
|
|
CHECK-NEXT: call void @llvm.memcpy
|
|
|
|
CHECK: define{{.*}} i32 @main
|
|
CHECK: call void @bar
|
|
|
|
CHECK: define{{.*}} void @foo
|
|
CHECK-NEXT: call void @llvm.memcpy
|
|
|
|
CHECK: define{{.*}} void @no_builtins
|
|
CHECK-SAME: #[[ATTR:[0-9]+]] {
|
|
CHECK: call void @foo
|
|
CHECK-NEXT: call{{.*}} @memcpy
|
|
|
|
CHECK: attributes #[[ATTR]]
|
|
CHECK-SAME: no-builtins
|