r337231 - [analyzer] Fix size_t in tests.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 16 18:39:25 PDT 2018
Author: dergachev
Date: Mon Jul 16 18:39:25 2018
New Revision: 337231
URL: http://llvm.org/viewvc/llvm-project?rev=337231&view=rev
Log:
[analyzer] Fix size_t in tests.
Should fix a buildbot. No functional change intended.
Modified:
cfe/trunk/test/Analysis/pr37802.cpp
Modified: cfe/trunk/test/Analysis/pr37802.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/pr37802.cpp?rev=337231&r1=337230&r2=337231&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/pr37802.cpp (original)
+++ cfe/trunk/test/Analysis/pr37802.cpp Mon Jul 16 18:39:25 2018
@@ -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 {
More information about the cfe-commits
mailing list