]> granicus.if.org Git - clang/commitdiff
clang/test/Analysis/malloc-overflow2.c: Appease 32-bit targets.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 24 Sep 2015 02:49:00 +0000 (02:49 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 24 Sep 2015 02:49:00 +0000 (02:49 +0000)
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

test/Analysis/malloc-overflow2.c

index 93f0239fe097210e40813f129a964fd205eddd7a..83a2c02213b2050323e9eb3de646b11fad1ec621 100644 (file)
@@ -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);