Skip to content

Commit 3b3b891

Browse files
authored
[clang][NFC] Add CWG882 test (Defining main as deleted) (#101382)
https://cplusplus.github.io/CWG/issues/882.html This was implemented for Clang 3.5 by b63b6ee
1 parent bbadbf7 commit 3b3b891

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

clang/test/CXX/drs/cwg8xx.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ void g(int i) {
3030
}
3131
#endif
3232
} // namespace cwg873
33+
34+
// cwg882: 3.5
35+
#if __cplusplus >= 201103L
36+
int main() = delete;
37+
// since-cxx11-error@-1 {{'main' is not allowed to be deleted}}
38+
#endif

clang/www/cxx_dr_status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5161,7 +5161,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
51615161
<td><a href="https://cplusplus.github.io/CWG/issues/882.html">882</a></td>
51625162
<td>CD2</td>
51635163
<td>Defining <TT>main</TT> as deleted</td>
5164-
<td class="unknown" align="center">Unknown</td>
5164+
<td class="full" align="center">Clang 3.5</td>
51655165
</tr>
51665166
<tr id="883">
51675167
<td><a href="https://cplusplus.github.io/CWG/issues/883.html">883</a></td>

0 commit comments

Comments
 (0)