mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-24 17:01:07 +00:00
[clang][DR] Test and mark DR1305 as complete
DR: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1305 This DR has always been implemented in all clang versions as far back as I could go. This patch basically just adds a test with the needed comments to mark it as complete. Differential Revision: https://reviews.llvm.org/D122674
This commit is contained in:
parent
de7cd3ccf5
commit
c1e614c8eb
@ -13,6 +13,16 @@ namespace std {
|
||||
};
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
namespace dr1305 { // dr1305: yes
|
||||
struct Incomplete; // expected-note {{forward declaration of 'dr1305::Incomplete'}}
|
||||
struct Complete {};
|
||||
|
||||
int incomplete = alignof(Incomplete(&)[]); // expected-error {{invalid application of 'alignof' to an incomplete type 'dr1305::Incomplete'}}
|
||||
int complete = alignof(Complete(&)[]);
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace dr1310 { // dr1310: 5
|
||||
struct S {} * sp = new S::S; // expected-error {{qualified reference to 'S' is a constructor name}}
|
||||
void f() {
|
||||
|
@ -7644,7 +7644,7 @@ and <I>POD class</I></td>
|
||||
<td><a href="https://wg21.link/cwg1305">1305</a></td>
|
||||
<td>CD3</td>
|
||||
<td><TT>alignof</TT> applied to array of unknown size</td>
|
||||
<td class="none" align="center">Unknown</td>
|
||||
<td class="full" align="center">Yes</td>
|
||||
</tr>
|
||||
<tr id="1306">
|
||||
<td><a href="https://wg21.link/cwg1306">1306</a></td>
|
||||
|
Loading…
Reference in New Issue
Block a user