reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | // RUN: %clangxx_asan -O0 %s -o %t && %run %t // Regression test for PR17138. #include <assert.h> #include <string.h> #include <stdio.h> int main() { char buf[1024]; char *res = (char *)strerror_r(300, buf, sizeof(buf)); printf("%p\n", res); return 0; } |