// RUN: clang-cc -emit-llvm-only -verify %s
// PR5454
#include <stddef.h>

class X {static void * operator new(size_t size) throw(); X(int); };
int a(), b();
void b(int x)
{
  new X(x ? a() : b());
}


// RUN: clang-cc -emit-llvm-only -verify %s
// PR5454

class X {static void * operator new(unsigned long size) throw(); X(int); };
int a(), b();
void b(int x)
{
  new X(x ? a() : b());
}


--- 
+++ 
@@ -1,7 +1,8 @@
 // RUN: clang-cc -emit-llvm-only -verify %s
 // PR5454
+#include <stddef.h>
 
-class X {static void * operator new(unsigned long size) throw(); X(int); };
+class X {static void * operator new(size_t size) throw(); X(int); };
 int a(), b();
 void b(int x)
 {
Make test more platform independent.



git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@86890 91177308-0d34-0410-b5e6-96231b3b80d8
