forked from OSchip/llvm-project
Fix clang/test/Sema/struct-packed-align.c. "Windows" is not MS compiler.
llvm-svn: 254614
This commit is contained in:
parent
25ddd2c9e8
commit
66389e8ff2
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue