From b4e2e7a2922229393d10a6de131f7f60e4ea0057 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 1 Oct 2015 07:05:38 +0000 Subject: Suppress array initialization warnings in std::experimental::apply tests llvm-svn: 248987 --- .../std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp | 5 +++++ .../experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp | 4 ++++ .../test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp | 4 ++++ 3 files changed, 13 insertions(+) (limited to 'libcxx/test/std/experimental/utilities') diff --git a/libcxx/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp b/libcxx/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp index 56dc3c6aaa2..cb44707fa7e 100644 --- a/libcxx/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp +++ b/libcxx/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp @@ -20,6 +20,11 @@ #include #include +// 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" + + namespace ex = std::experimental; int call_with_value(int x, int y) { return (x + y); } diff --git a/libcxx/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp b/libcxx/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp index 322554925d3..0c5170f29ce 100644 --- a/libcxx/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp +++ b/libcxx/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp @@ -22,6 +22,10 @@ #include #include +// 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 count = 0; struct A_int_0 diff --git a/libcxx/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp b/libcxx/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp index 5d3d564c26f..52eec276394 100644 --- a/libcxx/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp +++ b/libcxx/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp @@ -20,6 +20,10 @@ #include #include +// 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" + namespace ex = std::experimental; int count = 0; -- cgit v1.2.3