[clang][NFC] Mark CWG 974 and 1814 (default argument in a...

...lambda-expression) as done. They have been allowed since at least clang 3.3.
This commit is contained in:
Bruno Ricci 2020-06-13 13:49:07 +01:00
parent 325f7607b0
commit eb614db0a0
No known key found for this signature in database
GPG Key ID: D58C906B2F684D92
2 changed files with 16 additions and 0 deletions

View File

@ -31,6 +31,14 @@ namespace dr1813 { // dr1813: 7
static_assert(!__is_standard_layout(U), "");
}
namespace dr1814 { // dr1814: yes
#if __cplusplus >= 201103L
void test() {
auto lam = [](int x = 42) { return x; };
}
#endif
}
namespace dr1815 { // dr1815: no
#if __cplusplus >= 201402L
// FIXME: needs codegen test

View File

@ -73,3 +73,11 @@ namespace dr948 { // dr948: 3.7
}
#endif
}
namespace dr974 { // dr974: yes
#if __cplusplus >= 201103L
void test() {
auto lam = [](int x = 42) { return x; };
}
#endif
}