summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/new-operator-phi.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-11-10 23:47:18 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-11-10 23:47:18 +0000
commit4e088941ad994c21ea2df9a403454075707935de (patch)
treebdde11585f47140ab9f17fd0fcae5852898fdefa /clang/test/CodeGenCXX/new-operator-phi.cpp
parent8ff26038efdac4958d485e6f70fc12cdc6758a53 (diff)
downloadbcm5719-llvm-4e088941ad994c21ea2df9a403454075707935de.tar.gz
bcm5719-llvm-4e088941ad994c21ea2df9a403454075707935de.zip
Diagnose illegally typed operator new/new[].
llvm-svn: 86755
Diffstat (limited to 'clang/test/CodeGenCXX/new-operator-phi.cpp')
-rw-r--r--clang/test/CodeGenCXX/new-operator-phi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/new-operator-phi.cpp b/clang/test/CodeGenCXX/new-operator-phi.cpp
index d4c698d0638..03f528cfbe7 100644
--- a/clang/test/CodeGenCXX/new-operator-phi.cpp
+++ b/clang/test/CodeGenCXX/new-operator-phi.cpp
@@ -1,7 +1,7 @@
// RUN: clang-cc -emit-llvm-only -verify %s
// PR5454
-class X {static void * operator new(unsigned size) throw(); X(int); };
+class X {static void * operator new(unsigned long size) throw(); X(int); };
int a(), b();
void b(int x)
{
OpenPOWER on IntegriCloud