summaryrefslogtreecommitdiff
path: root/test/std/containers/sequences/array/begin.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/containers/sequences/array/begin.pass.cpp')
-rw-r--r--test/std/containers/sequences/array/begin.pass.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/std/containers/sequences/array/begin.pass.cpp b/test/std/containers/sequences/array/begin.pass.cpp
index 9cba0d6fceb0..b12ffc851b84 100644
--- a/test/std/containers/sequences/array/begin.pass.cpp
+++ b/test/std/containers/sequences/array/begin.pass.cpp
@@ -14,6 +14,10 @@
#include <array>
#include <cassert>
+// 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()
{
{
@@ -27,6 +31,4 @@ int main()
*i = 5.5;
assert(c[0] == 5.5);
}
- {
- }
}