]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix size_t in tests.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 17 Jul 2018 01:39:25 +0000 (01:39 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 17 Jul 2018 01:39:25 +0000 (01:39 +0000)
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

test/Analysis/pr37802.cpp

index 647e389362cd1207f18a73938572ad16e063620a..9acfebaae860eaa58691d6dcacedf52e443221e5 100644 (file)
@@ -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 {