diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-09-20 11:03:56 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-09-20 11:03:56 +0000 |
commit | 9620aa8c6726330c0357799706aa51f64cc449da (patch) | |
tree | 3618a273ea15267194988a7540e93322b645a812 /test/Analysis/malloc-interprocedural.c | |
parent | 087c65fb270d7f465f221b543731f89343032e90 (diff) |
clang/test/Analysis: Fix the declaration of strlen() for 32 bit targets.
- 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
Diffstat (limited to 'test/Analysis/malloc-interprocedural.c')
-rw-r--r-- | test/Analysis/malloc-interprocedural.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/Analysis/malloc-interprocedural.c b/test/Analysis/malloc-interprocedural.c index 9d02daaa84..79cbf247dd 100644 --- a/test/Analysis/malloc-interprocedural.c +++ b/test/Analysis/malloc-interprocedural.c @@ -1,10 +1,7 @@ // 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 *); |