diff options
| author | Ralf Jung <post@ralfj.de> | 2022-10-09 12:42:24 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-10-09 12:42:24 +0200 |
| commit | e413c96ec597f099c2cc8954f643a366f07aba75 (patch) | |
| tree | c4f5f16611c25f1d64ccc57b9e70072180747687 /src/tools/miri/tests/fail/unaligned_pointers | |
| parent | 7b30b26145791ef1953c93e8dd8a0175fd53c3ac (diff) | |
| parent | 39375e14d7ed418478d459f98cff8c6bd4793189 (diff) | |
| download | rust-e413c96ec597f099c2cc8954f643a366f07aba75.tar.gz rust-e413c96ec597f099c2cc8954f643a366f07aba75.zip | |
merge rustc history
Diffstat (limited to 'src/tools/miri/tests/fail/unaligned_pointers')
| -rw-r--r-- | src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr1.rs | 2 | ||||
| -rw-r--r-- | src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr_addr_of.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr1.rs b/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr1.rs index 73adc4dc449..47d1f782cb6 100644 --- a/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr1.rs +++ b/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr1.rs @@ -3,7 +3,7 @@ fn main() { // Try many times as this might work by chance. - for _ in 0..10 { + for _ in 0..20 { let x = [2u16, 3, 4]; // Make it big enough so we don't get an out-of-bounds error. let x = &x[0] as *const _ as *const u32; // This must fail because alignment is violated: the allocation's base is not sufficiently aligned. diff --git a/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr_addr_of.rs b/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr_addr_of.rs index e439cf2b03b..f1032ab52bc 100644 --- a/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr_addr_of.rs +++ b/src/tools/miri/tests/fail/unaligned_pointers/unaligned_ptr_addr_of.rs @@ -4,7 +4,7 @@ use std::ptr; fn main() { // Try many times as this might work by chance. - for _ in 0..10 { + for _ in 0..20 { let x = [2u16, 3, 4]; // Make it big enough so we don't get an out-of-bounds error. let x = &x[0] as *const _ as *const u32; // This must fail because alignment is violated: the allocation's base is not sufficiently aligned. |
