diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2023-01-07 19:03:07 +0900 |
|---|---|---|
| committer | Yuki Okushi <jtitor@2k36.org> | 2023-01-07 19:03:07 +0900 |
| commit | ab9313e624d581a75f4b886c0adf351f848d725a (patch) | |
| tree | 7a6a69d885c001341a29d665c16ce7b0d19b72bf /src/test | |
| parent | 78e11a45564e1e8a67f0078fe89659032aed41a6 (diff) | |
| download | rust-ab9313e624d581a75f4b886c0adf351f848d725a.tar.gz rust-ab9313e624d581a75f4b886c0adf351f848d725a.zip | |
Apply `merge-functions=disabled`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/codegen/issue-86106.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test/codegen/issue-86106.rs b/src/test/codegen/issue-86106.rs index e647dbe2514..9ccbcb24f56 100644 --- a/src/test/codegen/issue-86106.rs +++ b/src/test/codegen/issue-86106.rs @@ -1,14 +1,21 @@ // min-llvm-version: 15.0 -// compile-flags: -C opt-level=3 +// compile-flags: -C opt-level=3 -Z merge-functions=disabled // The below two functions ensure that both `String::new()` and `"".to_string()` // produce the identical code. #![crate_type = "lib"] -// CHECK-LABEL: @string_new = unnamed_addr alias void (ptr), ptr @empty_to_string +// CHECK-LABEL: define void @string_new #[no_mangle] pub fn string_new() -> String { + // CHECK-NOT: load i8 + // CHECK: store i{{32|64}} + // CHECK-NEXT: getelementptr + // CHECK-NEXT: store ptr + // CHECK-NEXT: getelementptr + // CHECK-NEXT: store i{{32|64}} + // CHECK-NEXT: ret void String::new() } |
