From: Artem Dergachev Date: Tue, 17 Jul 2018 01:39:25 +0000 (+0000) Subject: [analyzer] Fix size_t in tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d564b220e7a941b24f07708241f065dfee99b95e;p=clang [analyzer] Fix size_t in tests. Should fix a buildbot. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337231 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/pr37802.cpp b/test/Analysis/pr37802.cpp index 647e389362..9acfebaae8 100644 --- a/test/Analysis/pr37802.cpp +++ b/test/Analysis/pr37802.cpp @@ -2,7 +2,8 @@ // expected-no-diagnostics -void *operator new(unsigned long, void *h) { return h; } +typedef __typeof(sizeof(int)) size_t; +void *operator new(size_t, void *h) { return h; } // I've no idea what this code does, but it used to crash, so let's keep it. namespace pr37802_v1 {