Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Sema/pragma-pack-4.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify |
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify | |
3 // expected-no-diagnostics | |
4 | |
5 // rdar://problem/7095436 | |
6 #pragma pack(4) | |
7 | |
8 struct s0 { | |
9 long long a __attribute__((aligned(8))); | |
10 long long b __attribute__((aligned(8))); | |
11 unsigned int c __attribute__((aligned(8))); | |
12 int d[12]; | |
13 }; | |
14 | |
15 struct s1 { | |
16 int a[15]; | |
17 struct s0 b; | |
18 }; | |
19 | |
20 int arr0[((sizeof(struct s1) % 64) == 0) ? 1 : -1]; |