]> granicus.if.org Git - clang/commitdiff
Fix test portability.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 12 Nov 2009 00:41:41 +0000 (00:41 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 12 Nov 2009 00:41:41 +0000 (00:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86911 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/new.cpp

index c6cee184567019a98941705f52978bb5dfbff4e4..3f191de23bcff5240f1c17e6133afec7f1d1d8e5 100644 (file)
@@ -1,11 +1,12 @@
 // RUN: clang-cc %s -emit-llvm -o - | FileCheck %s
+#include <stddef.h>
 
 void t1() {
   int* a = new int;
 }
 
 // Placement.
-void* operator new(unsigned long, void*) throw();
+void* operator new(size_t, void*) throw();
 
 void t2(int* a) {
   int* b = new (a) int;