aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/deleted-function.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-09-15 19:12:21 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-09-15 19:12:21 +0000
commit34acd3e62c4ca3a2904f2515ff2a1a94c7d27b01 (patch)
tree7b85e3e0751dcf22720553ea1957de31d12f55f3 /test/SemaCXX/deleted-function.cpp
parentf882574cf640d5c8355965e1c486f9d8d8ffcf47 (diff)
Issue good diagnostics when initialization failes due to
ambiguity in type conversion function selection. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/deleted-function.cpp')
-rw-r--r--test/SemaCXX/deleted-function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/deleted-function.cpp b/test/SemaCXX/deleted-function.cpp
index 8064ed349b..637b2b1b2d 100644
--- a/test/SemaCXX/deleted-function.cpp
+++ b/test/SemaCXX/deleted-function.cpp
@@ -18,7 +18,7 @@ void ov(double) = delete; // expected-note {{candidate function has been explici
struct WithDel {
WithDel() = delete; // expected-note {{candidate function has been explicitly deleted}}
void fn() = delete; // expected-note {{function has been explicitly marked deleted here}}
- operator int() = delete;
+ operator int() = delete;
void operator +(int) = delete;
int i = delete; // expected-error {{only functions can have deleted definitions}}