Skip to content

Commit e2a8b98

Browse files
authored
[asan] Change zero_alloc.cpp testcase to use stdlib.h, re-enable on Mac (#156490)
Avoid build breakage on Mac (reported at #155943 (comment))
1 parent c62284c commit e2a8b98

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +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-
// UNSUPPORTED: darwin
4-
// UNSUPPORTED: ios
5-
6-
#include <malloc.h>
73
#include <stdio.h>
4+
#include <stdlib.h>
85

96
int main(int argc, char **argv) {
107
{

0 commit comments

Comments
 (0)