Skip to content

Commit 70fcee3

Browse files
committed
Add test case needing ASAN
1 parent 963c322 commit 70fcee3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <assert.h>
2+
#include <iostream>
3+
4+
void f(int value) {
5+
// The value in this function is expected to be in [1, 5].
6+
std::cout << value << std::endl;
7+
}
8+
9+
int main() {
10+
int a[5] = {1, 2, 3, 4, 5};
11+
int b[5] = {6, 7, 8, 9, 10};
12+
13+
f(*(a + 5));
14+
}

0 commit comments

Comments
 (0)