brintos

brintos / llvm-project-archived public Read only

0
0
Text · 852 B · cd33d7c Raw
20 lines · c
1// RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -Wpragma-pack-suspicious-include -I %S/Inputs -DALIGN_SET_HERE -verify %s2// RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -Wpragma-pack-suspicious-include -I %S/Inputs -DRECORD_ALIGN -verify %s3 4#ifdef ALIGN_SET_HERE5#pragma align = natural // expected-warning {{unterminated '#pragma pack (push, ...)' at end of file}}6// expected-warning@+9 {{the current #pragma pack alignment value is modified in the included file}}7#endif8 9#ifdef RECORD_ALIGN10#pragma align = mac68k11// expected-note@-1 {{previous '#pragma pack' directive that modifies alignment is here}}12// expected-warning@+3 {{non-default #pragma pack value changes the alignment of struct or union members in the included file}}13#endif14 15#include "pragma-align-pack1.h"16 17#ifdef RECORD_ALIGN18#pragma align = reset19#endif20