summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/new-delete.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-10-25 21:45:37 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-10-25 21:45:37 +0000
commitd7b3d7dd79eb4fc0983068c3cd6d0f4ea21a9fc3 (patch)
treeec4cd19c7ed276c56724724068f171c8c6166aba /clang/test/SemaCXX/new-delete.cpp
parent588f19acc1b490ba10b8cd11db0f122a94b3bcd4 (diff)
downloadbcm5719-llvm-d7b3d7dd79eb4fc0983068c3cd6d0f4ea21a9fc3.tar.gz
bcm5719-llvm-d7b3d7dd79eb4fc0983068c3cd6d0f4ea21a9fc3.zip
Remove the Skip parameter from GetTypeForDeclarator and dependents. Take the opportunity to improve an error message and fix PR4498.
llvm-svn: 85068
Diffstat (limited to 'clang/test/SemaCXX/new-delete.cpp')
-rw-r--r--clang/test/SemaCXX/new-delete.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/new-delete.cpp b/clang/test/SemaCXX/new-delete.cpp
index c67a3f65390..6f3e9effe53 100644
--- a/clang/test/SemaCXX/new-delete.cpp
+++ b/clang/test/SemaCXX/new-delete.cpp
@@ -58,6 +58,7 @@ void bad_news(int *ip)
(void)new int[1.1]; // expected-error {{array size expression must have integral or enumerated type, not 'double'}}
(void)new int[1][i]; // expected-error {{only the first dimension}}
(void)new (int[1][i]); // expected-error {{only the first dimension}}
+ (void)new (int[i]); // expected-error {{when type is in parentheses}}
(void)new int(*(S*)0); // expected-error {{incompatible type initializing}}
(void)new int(1, 2); // expected-error {{initializer of a builtin type can only take one argument}}
(void)new S(1); // expected-error {{no matching constructor}}
OpenPOWER on IntegriCloud