diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-10-01 07:05:38 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-10-01 07:05:38 +0000 |
commit | b4e2e7a2922229393d10a6de131f7f60e4ea0057 (patch) | |
tree | e98a1c68eb62049471c9d4df5ecfaa6338548dae /libcxx/test/std/containers/sequences/array/array.tuple | |
parent | f74bb3b8b028904d3c05ba62c13c0c0d7ac329c6 (diff) | |
download | bcm5719-llvm-b4e2e7a2922229393d10a6de131f7f60e4ea0057.tar.gz bcm5719-llvm-b4e2e7a2922229393d10a6de131f7f60e4ea0057.zip |
Suppress array initialization warnings in std::experimental::apply tests
llvm-svn: 248987
Diffstat (limited to 'libcxx/test/std/containers/sequences/array/array.tuple')
4 files changed, 13 insertions, 4 deletions
diff --git a/libcxx/test/std/containers/sequences/array/array.tuple/get.fail.cpp b/libcxx/test/std/containers/sequences/array/array.tuple/get.fail.cpp index 6b2385da065..13323dd8e51 100644 --- a/libcxx/test/std/containers/sequences/array/array.tuple/get.fail.cpp +++ b/libcxx/test/std/containers/sequences/array/array.tuple/get.fail.cpp @@ -20,7 +20,10 @@ #include <cassert> #include "test_macros.h" -#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() { diff --git a/libcxx/test/std/containers/sequences/array/array.tuple/get.pass.cpp b/libcxx/test/std/containers/sequences/array/array.tuple/get.pass.cpp index c4557078fc4..4f210c4f762 100644 --- a/libcxx/test/std/containers/sequences/array/array.tuple/get.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/array.tuple/get.pass.cpp @@ -16,7 +16,9 @@ #include "test_macros.h" -#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" #if TEST_STD_VER > 11 diff --git a/libcxx/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp b/libcxx/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp index ddc2ab2855c..04606bf6cf7 100644 --- a/libcxx/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp @@ -16,7 +16,9 @@ #include "test_macros.h" -#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() { diff --git a/libcxx/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp b/libcxx/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp index 412c7c78aa8..72ef49b157f 100644 --- a/libcxx/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp @@ -18,7 +18,9 @@ #include <utility> #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() { |