Fix clang/test/Sema/struct-packed-align.c. "Windows" is not MS compiler.

llvm-svn: 254614
This commit is contained in:
NAKAMURA Takumi 2015-12-03 16:03:34 +00:00
parent 25ddd2c9e8
commit 66389e8ff2
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ struct packed_chars {
char c:4;
};
#if defined(_WIN32)
#if defined(_WIN32) && !defined(__declspec) // _MSC_VER is unavailable in cc1.
// On Windows clang uses MSVC compatible layout in this case.
extern int o1[sizeof(struct packed_chars) == 3 ? 1 : -1];
extern int o2[__alignof(struct packed_chars) == 1 ? 1 : -1];