Disable 'suggest braces' warnings for std::array in tests

llvm-svn: 337808
This commit is contained in:
Marshall Clow 2018-07-24 03:41:36 +00:00
parent 5ccdd923ed
commit 8bbf22ed72
2 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,10 @@
#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 ()
{
{

View 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()