From: Sebastian Redl
Date: Sun, 12 Apr 2009 17:41:24 +0000 (+0000)
Subject: Add deleted functions and rvalue references to C++ status.
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b5e7fbb94071e83a527e6759154d9512620f0ce;p=clang
Add deleted functions and rvalue references to C++ status.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68903 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/test/SemaCXX/deleted-function.cpp b/test/SemaCXX/deleted-function.cpp
index 0e36396023..8064ed349b 100644
--- a/test/SemaCXX/deleted-function.cpp
+++ b/test/SemaCXX/deleted-function.cpp
@@ -20,6 +20,8 @@ struct WithDel {
void fn() = delete; // expected-note {{function has been explicitly marked deleted here}}
operator int() = delete;
void operator +(int) = delete;
+
+ int i = delete; // expected-error {{only functions can have deleted definitions}}
};
void test() {
diff --git a/www/cxx_status.html b/www/cxx_status.html
index 7d87303c28..fea31b6edb 100644
--- a/www/cxx_status.html
+++ b/www/cxx_status.html
@@ -1711,7 +1711,8 @@ welcome!
|
|
No name mangling; ASTs don't contain calls to conversion operators |
-
+
+
Static assertions (N1720) |
✓ |
✓ |
@@ -1719,6 +1720,22 @@ welcome!
N/A |
|
+
+ Deleted functions (N2346) |
+ ✓ |
+ ✓ |
+ ✓ |
+ N/A |
+ |
+
+
+ Rvalue references (N2118 + N2831) |
+ ✓ |
+ ✓ |
+ ✓ |
+ |
+ |
+