diff options
Diffstat (limited to 'test/asan/TestCases/Darwin/getpwnam.c')
-rw-r--r-- | test/asan/TestCases/Darwin/getpwnam.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/asan/TestCases/Darwin/getpwnam.c b/test/asan/TestCases/Darwin/getpwnam.c new file mode 100644 index 000000000000..db3ec3f8c2a8 --- /dev/null +++ b/test/asan/TestCases/Darwin/getpwnam.c @@ -0,0 +1,15 @@ +// RUN: %clang_asan %s -o %t +// RUN: %run %t 2>&1 | FileCheck %s + +#include <pwd.h> +#include <stdio.h> +#include <stdlib.h> +#include <sys/types.h> + +int main(int argc, const char * argv[]) { + getpwnam(NULL); + fprintf(stderr, "Finished.\n"); + return 0; +} + +// CHECK: Finished. |