From 8bbf22ed72c7f25976714d4901aaa3d303c3044e Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 24 Jul 2018 03:41:36 +0000 Subject: [PATCH] Disable 'suggest braces' warnings for std::array in tests llvm-svn: 337808 --- libcxx/test/std/containers/views/span.cons/deduct.pass.cpp | 4 ++++ libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp b/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp index 3410bb3..e72c091 100644 --- a/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp @@ -37,6 +37,10 @@ #include "test_macros.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 () { { diff --git a/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp b/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp index 204935d..1832ac2 100644 --- a/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp @@ -27,6 +27,9 @@ #include #include "test_macros.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" void checkCV() -- 2.7.4