Skip to content

Commit 58ae9a9

Browse files
committed
Add note on bad compilers
1 parent b4f3a7e commit 58ae9a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-rt/test/asan/TestCases/zero_alloc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %clang_asan -Wno-alloc-size -fsanitize-recover=address %s -o %t && %env_asan_opts=halt_on_error=0 %run %t 2>&1 | FileCheck %s
22

3+
// ASan doesn't catch this because internally it translates 0-byte allocations
4+
// into 1-byte
35
// XFAIL: *
46

57
#include <malloc.h>

0 commit comments

Comments
 (0)