Disable 'suggest braces' warnings for std::array in tests
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -37,6 +37,10 @@
|
|||||||
|
|
||||||
#include "test_macros.h"
|
#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 ()
|
int main ()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,6 +27,9 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "test_macros.h"
|
#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()
|
void checkCV()
|
||||||
|
|||||||
Reference in New Issue
Block a user