summaryrefslogtreecommitdiff
path: root/test/Sema/struct-packed-align.c
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-12-03 16:03:34 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-12-03 16:03:34 +0000
commit7c826426a60e148424e578e0d769ad74c580bee2 (patch)
tree9fcfb7d55b19842ffff1adf9bec71e88b8f5b9a2 /test/Sema/struct-packed-align.c
parent0f0725129303f42ba82b4ff6bb4b156430e480a9 (diff)
downloadclang-7c826426a60e148424e578e0d769ad74c580bee2.tar.gz
Fix clang/test/Sema/struct-packed-align.c. "Windows" is not MS compiler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/struct-packed-align.c')
-rw-r--r--test/Sema/struct-packed-align.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/struct-packed-align.c b/test/Sema/struct-packed-align.c
index 175866fbe9..abdcd8e6b9 100644
--- a/test/Sema/struct-packed-align.c
+++ b/test/Sema/struct-packed-align.c
@@ -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];