diff options
Diffstat (limited to 'lib/msan/lit_tests/c-strdup.c')
-rw-r--r-- | lib/msan/lit_tests/c-strdup.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/msan/lit_tests/c-strdup.c b/lib/msan/lit_tests/c-strdup.c deleted file mode 100644 index 7772f0f307b72..0000000000000 --- a/lib/msan/lit_tests/c-strdup.c +++ /dev/null @@ -1,17 +0,0 @@ -// RUN: %clang_msan -m64 -O0 %s -o %t && %t >%t.out 2>&1 -// RUN: %clang_msan -m64 -O1 %s -o %t && %t >%t.out 2>&1 -// RUN: %clang_msan -m64 -O2 %s -o %t && %t >%t.out 2>&1 -// RUN: %clang_msan -m64 -O3 %s -o %t && %t >%t.out 2>&1 - -// Test that strdup in C programs is intercepted. -// GLibC headers translate strdup to __strdup at -O1 and higher. - -#include <stdlib.h> -#include <string.h> -int main(int argc, char **argv) { - char buf[] = "abc"; - char *p = strdup(buf); - if (*p) - exit(0); - return 0; -} |