diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-26 19:24:20 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-26 19:24:20 +0000 |
| commit | 2953104c9a262728031dc518429d15b969dd6028 (patch) | |
| tree | d4fff23823637f2256cedf634a2be262862ea90f /test/asan/TestCases/Linux | |
| parent | f351c8a560ddc5b5df9ee5ba4ccc1cfb9029146d (diff) | |
Notes
Diffstat (limited to 'test/asan/TestCases/Linux')
| -rw-r--r-- | test/asan/TestCases/Linux/read_binary_name_regtest.c | 1 | ||||
| -rw-r--r-- | test/asan/TestCases/Linux/textdomain.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/asan/TestCases/Linux/read_binary_name_regtest.c b/test/asan/TestCases/Linux/read_binary_name_regtest.c index b09096c89cb7..41302567752c 100644 --- a/test/asan/TestCases/Linux/read_binary_name_regtest.c +++ b/test/asan/TestCases/Linux/read_binary_name_regtest.c @@ -3,6 +3,7 @@ // This test uses seccomp-BPF to restrict the readlink() system call and makes // sure ASan is still able to // RUN: not ls /usr/include/linux/seccomp.h || ( %clang_asan %s -o %t && not %run %t 2>&1 | FileCheck %s ) +// REQUIRES: shell // UNSUPPORTED: android #include <errno.h> diff --git a/test/asan/TestCases/Linux/textdomain.c b/test/asan/TestCases/Linux/textdomain.c new file mode 100644 index 000000000000..31e5139c9f7c --- /dev/null +++ b/test/asan/TestCases/Linux/textdomain.c @@ -0,0 +1,10 @@ +// RUN: %clang_asan -O0 -g %s -o %t +// RUN: %env_asan_opts=strict_string_checks=1 %run %t + +#include <stdlib.h> +#include <libintl.h> + +int main() { + textdomain(NULL); + return 0; +} |
