Skip to content

Commit aabc2f7

Browse files
Add esoteric test
1 parent 7b31427 commit aabc2f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clang/test/Analysis/buffer-overlap.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,10 @@ void test_snprintf6() {
9696
char b[4] = {0};
9797
snprintf(a, sizeof(a), "%s", b); // no-warning
9898
}
99+
100+
void* memcpy(void* dest, const void* src, size_t count);
101+
102+
void test_memcpy_esoteric() {
103+
label:
104+
memcpy((char *)&&label, (const char *)memcpy, 1);
105+
}

0 commit comments

Comments
 (0)