Revert "Revert "Update aosp/master libcxx rebase to r263688""
This reverts commit 1d4a1edbc7.
Change-Id: I2909937fe582f2c5552bc86e7f4d2d5cff0de0aa
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -33,4 +35,18 @@ int main()
|
||||
C c = {};
|
||||
assert(c.size() == 0);
|
||||
}
|
||||
|
||||
{
|
||||
typedef double T;
|
||||
typedef std::array<T, 3> C;
|
||||
C c = {1};
|
||||
assert(c.size() == 3.0);
|
||||
assert(c[0] == 1);
|
||||
}
|
||||
{
|
||||
typedef int T;
|
||||
typedef std::array<T, 1> C;
|
||||
C c = {};
|
||||
assert(c.size() == 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user