Disable 'suggest braces' warnings for std::array in tests
authorMarshall Clow <mclow.lists@gmail.com>
Tue, 24 Jul 2018 03:41:36 +0000 (03:41 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Tue, 24 Jul 2018 03:41:36 +0000 (03:41 +0000)
llvm-svn: 337808

libcxx/test/std/containers/views/span.cons/deduct.pass.cpp
libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp

index 3410bb3..e72c091 100644 (file)
 
 #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 ()
 {
     {
index 204935d..1832ac2 100644 (file)
@@ -27,6 +27,9 @@
 #include <string>
 
 #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()