]> granicus.if.org Git - clang/commitdiff
Switching the tests to use size_t instead of unsigned int to hopefully appease the...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 30 May 2013 02:02:23 +0000 (02:02 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 30 May 2013 02:02:23 +0000 (02:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182906 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/microsoft-new.cpp

index 80a5019fd48e9cce8d2bb8175ce90c431da4d021..48e93d4aa0f88ba34694c6abcd487c4785ecc15c 100644 (file)
@@ -1,10 +1,12 @@
 // RUN: %clang_cc1 -triple i686-pc-win32 -fms-compatibility %s -emit-llvm -o - | FileCheck %s\r
 \r
+#include <stddef.h>\r
+\r
 struct arbitrary_t {} arbitrary;\r
-void *operator new(unsigned int size, arbitrary_t);\r
+void *operator new(size_t size, arbitrary_t);\r
 \r
 struct arbitrary2_t {} arbitrary2;\r
-void *operator new[](unsigned int size, arbitrary2_t);\r
+void *operator new[](size_t size, arbitrary2_t);\r
 \r
 namespace PR13164 {\r
   void f() {\r
@@ -15,7 +17,7 @@ namespace PR13164 {
   }\r
 \r
   struct S {\r
-    void *operator new[](unsigned int size, arbitrary_t);\r
+    void *operator new[](size_t size, arbitrary_t);\r
   };\r
 \r
   void g() {\r
@@ -26,7 +28,7 @@ namespace PR13164 {
   }\r
 \r
   struct T {\r
-    void *operator new(unsigned int size, arbitrary2_t);\r
+    void *operator new(size_t size, arbitrary2_t);\r
   };\r
 \r
   void h() {\r