From: NAKAMURA Takumi Date: Thu, 24 Sep 2015 02:49:00 +0000 (+0000) Subject: clang/test/Analysis/malloc-overflow2.c: Appease 32-bit targets. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5c21c24c442b9a023086f372d76c2e9f8e958ad;p=clang clang/test/Analysis/malloc-overflow2.c: Appease 32-bit targets. size_t is not unsigned long for targeting i686 (and Windows x64). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248458 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/malloc-overflow2.c b/test/Analysis/malloc-overflow2.c index 93f0239fe0..83a2c02213 100644 --- a/test/Analysis/malloc-overflow2.c +++ b/test/Analysis/malloc-overflow2.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.MallocOverflow,unix -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -analyze -analyzer-checker=alpha.security.MallocOverflow,unix -verify %s typedef __typeof__(sizeof(int)) size_t; extern void *malloc(size_t);