Suppress array initialization warnings in std::experimental::apply tests

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-10-01 07:05:38 +00:00
parent 49abdbcca3
commit 237206bfda
19 changed files with 62 additions and 18 deletions

View File

@@ -20,6 +20,11 @@
#include <utility>
#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"
namespace ex = std::experimental;
int call_with_value(int x, int y) { return (x + y); }

View File

@@ -22,6 +22,10 @@
#include <utility>
#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 count = 0;
struct A_int_0

View File

@@ -20,6 +20,10 @@
#include <utility>
#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"
namespace ex = std::experimental;
int count = 0;