- Inputs/system-header-simulator.h: Declare strlen() with size_t.
- malloc-interprocedural.c: Move the definition of size_t into the header above.
Then XFAIL can be pruned.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164300
91177308-0d34-0410-b5e6-
96231b3b80d8
// Note, on some platforms errno macro gets replaced with a function call.
extern int errno;
-unsigned long strlen(const char *);
+typedef __typeof(sizeof(int)) size_t;
+
+size_t strlen(const char *);
char *strcpy(char *restrict, const char *restrict);
// RUN: %clang_cc1 -analyze -analyzer-checker=unix.Malloc -analyzer-inline-max-stack-depth=5 -verify %s
-// XFAIL: cygwin,mingw32,win32
-
#include "Inputs/system-header-simulator.h"
-typedef __typeof(sizeof(int)) size_t;
void *malloc(size_t);
void *valloc(size_t);
void free(void *);