mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Tests/AK: Add a test for the array ctor deduction guide
This commit is contained in:
parent
d84b69ace9
commit
986872800e
Notes:
sideshowbarker
2024-07-17 16:23:06 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/986872800e Pull-request: https://github.com/SerenityOS/serenity/pull/23129
@ -19,7 +19,7 @@ static constexpr int constexpr_sum(ReadonlySpan<int> const span)
|
||||
|
||||
TEST_CASE(compile_time_constructible)
|
||||
{
|
||||
constexpr Array<int, 4> array = { 0, 1, 2, 3 };
|
||||
constexpr Array array = { 0, 1, 2, 3 };
|
||||
static_assert(array.size() == 4);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user