diff options
| author | Ralf Jung <post@ralfj.de> | 2023-01-02 15:11:19 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-01-02 15:11:19 +0100 |
| commit | e7cad62257e5b0d59ca18515a522e90924177330 (patch) | |
| tree | 09c82606a4ca740a7503347ee97b9196d01a4921 /src/test/codegen | |
| parent | b38a6d373cb254697411147c0e49cd2e84864258 (diff) | |
| download | rust-e7cad62257e5b0d59ca18515a522e90924177330.tar.gz rust-e7cad62257e5b0d59ca18515a522e90924177330.zip | |
do not add noalias in return position
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/function-arguments.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/codegen/function-arguments.rs b/src/test/codegen/function-arguments.rs index 44fee952307..0f9e90f6ba7 100644 --- a/src/test/codegen/function-arguments.rs +++ b/src/test/codegen/function-arguments.rs @@ -145,7 +145,7 @@ pub fn raw_struct(_: *const S) { // `Box` can get deallocated during execution of the function, so it should // not get `dereferenceable`. -// CHECK: noalias noundef nonnull align 4 {{i32\*|ptr}} @_box({{i32\*|ptr}} noalias noundef nonnull align 4 %x) +// CHECK: noundef nonnull align 4 {{i32\*|ptr}} @_box({{i32\*|ptr}} noalias noundef nonnull align 4 %x) #[no_mangle] pub fn _box(x: Box<i32>) -> Box<i32> { x |
