diff options
Diffstat (limited to 'test/Analysis/bstring.c')
-rw-r--r-- | test/Analysis/bstring.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Analysis/bstring.c b/test/Analysis/bstring.c index a671d9ee8d4ed..89a77cdff866a 100644 --- a/test/Analysis/bstring.c +++ b/test/Analysis/bstring.c @@ -474,3 +474,12 @@ char radar_11125445_memcopythenlogfirstbyte(const char *input, size_t length) { free(bytes); return x; } + +struct S { + char f; +}; + +void nocrash_on_locint_offset(void *addr, void* from, struct S s) { + int iAdd = (int) addr; + memcpy(((void *) &(s.f)), from, iAdd); +} |