summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/new.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/new.cpp')
-rw-r--r--test/CodeGenCXX/new.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp
index c6cee18..3f191de 100644
--- a/test/CodeGenCXX/new.cpp
+++ b/test/CodeGenCXX/new.cpp
@@ -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;
OpenPOWER on IntegriCloud