From: Richard Smith Date: Tue, 27 Jun 2017 00:22:07 +0000 (+0000) Subject: Fix this test to use a construct that actually forces struct layout to happen when... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af487b8dcec98f9011f131d9b77ba722bd69f808;p=clang Fix this test to use a construct that actually forces struct layout to happen when testing -Wpadded. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Modules/diag-flags.cpp b/test/Modules/diag-flags.cpp index 31d2fe4439..ada90d24b7 100644 --- a/test/Modules/diag-flags.cpp +++ b/test/Modules/diag-flags.cpp @@ -41,4 +41,4 @@ import diag_flags; #else // expected-no-diagnostics #endif -unsigned n = sizeof(Padded); +int arr[sizeof(Padded)];