Fix this test to use a construct that actually forces struct layout to happen when testing -Wpadded.

llvm-svn: 306349
This commit is contained in:
Richard Smith 2017-06-27 00:22:07 +00:00
parent e34a806431
commit 96b96c8e36
1 changed files with 1 additions and 1 deletions

View File

@ -41,4 +41,4 @@ import diag_flags;
#else
// expected-no-diagnostics
#endif
unsigned n = sizeof(Padded);
int arr[sizeof(Padded)];