Skip to content

Commit 1d7555f

Browse files
authored
Merge pull request #9993 from swiftlang/lldb/bounds-safety-tests-to-next
Reland "[lldb][test] Re-enable bounds safety tests"
2 parents 28184f5 + eeff447 commit 1d7555f

File tree

1 file changed

+7
-3
lines changed
  • lldb/test/API/lang/BoundsSafety/array_of_ptrs

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#include <ptrcheck.h>
2+
#include <stdio.h>
23
#include <stdlib.h>
34

45
int *__bidi_indexable array_of_bounds_safety_pointers[2];
56

67
int main() {
7-
array_of_bounds_safety_pointers[0] = __unsafe_forge_bidi_indexable(
8-
int *, (int *)malloc(16), 16); // break here 1
9-
return 0; // break here 2
8+
puts("// break here 1");
9+
array_of_bounds_safety_pointers[0] =
10+
__unsafe_forge_bidi_indexable(int *, (int *)malloc(16), 16);
11+
12+
puts("// break here 2");
13+
return 0;
1014
}

0 commit comments

Comments
 (0)