forked from OSchip/llvm-project
[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:
parent
325f7607b0
commit
eb614db0a0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue