summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/new-delete.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-23 05:47:27 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-23 05:47:27 +0000
commit8e01dcf6f64f1ce2ba1eabab9803acf27cd45944 (patch)
treeba594551ca593179bbca43259f5308d32535b3e4 /clang/test/SemaCXX/new-delete.cpp
parent82b86b0fce29dc32992a77a2bdef03739a8231ea (diff)
downloadbcm5719-llvm-8e01dcf6f64f1ce2ba1eabab9803acf27cd45944.tar.gz
bcm5719-llvm-8e01dcf6f64f1ce2ba1eabab9803acf27cd45944.zip
Fix the EntityKind order so that all entity kinds that can be copied (using copy constructors) come first. Also, fix a bug where EK_New was left out of the err_init_conversion_failed diagnostic (It is now reported as 'new value'). Please review Doug :)
llvm-svn: 94289
Diffstat (limited to 'clang/test/SemaCXX/new-delete.cpp')
-rw-r--r--clang/test/SemaCXX/new-delete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/new-delete.cpp b/clang/test/SemaCXX/new-delete.cpp
index 0e0f630bc49..b058fc13d96 100644
--- a/clang/test/SemaCXX/new-delete.cpp
+++ b/clang/test/SemaCXX/new-delete.cpp
@@ -65,7 +65,7 @@ void bad_news(int *ip)
(void)new S(1); // expected-error {{no matching constructor}}
(void)new S(1, 1); // expected-error {{call to constructor of 'struct S' is ambiguous}}
(void)new const int; // expected-error {{default initialization of an object of const type 'int const'}}
- (void)new float*(ip); // expected-error {{cannot initialize a value of type 'float *' with an lvalue of type 'int *'}}
+ (void)new float*(ip); // expected-error {{cannot initialize a new value of type 'float *' with an lvalue of type 'int *'}}
// Undefined, but clang should reject it directly.
(void)new int[-1]; // expected-error {{array size is negative}}
(void)new int[*(S*)0]; // expected-error {{array size expression must have integral or enumerated type, not 'struct S'}}
OpenPOWER on IntegriCloud