r306349 - Fix this test to use a construct that actually forces struct layout to happen when testing -Wpadded.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 26 17:22:07 PDT 2017
Author: rsmith
Date: Mon Jun 26 17:22:07 2017
New Revision: 306349
URL: http://llvm.org/viewvc/llvm-project?rev=306349&view=rev
Log:
Fix this test to use a construct that actually forces struct layout to happen when testing -Wpadded.
Modified:
cfe/trunk/test/Modules/diag-flags.cpp
Modified: cfe/trunk/test/Modules/diag-flags.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/diag-flags.cpp?rev=306349&r1=306348&r2=306349&view=diff
==============================================================================
--- cfe/trunk/test/Modules/diag-flags.cpp (original)
+++ cfe/trunk/test/Modules/diag-flags.cpp Mon Jun 26 17:22:07 2017
@@ -41,4 +41,4 @@ import diag_flags;
#else
// expected-no-diagnostics
#endif
-unsigned n = sizeof(Padded);
+int arr[sizeof(Padded)];
More information about the cfe-commits
mailing list