1 // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -Wpragma-pack-suspicious-include -I %S/Inputs -DALIGN_SET_HERE -verify %s 2 // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -Wpragma-pack-suspicious-include -I %S/Inputs -DRECORD_ALIGN -verify %s 3 4 #ifdef ALIGN_SET_HERE 5 #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 #endif 8 9 #ifdef RECORD_ALIGN 10 #pragma align = mac68k 11 // 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 #endif 14 15 #include "pragma-align-pack1.h" 16 17 #ifdef RECORD_ALIGN 18 #pragma align = reset 19 #endif 20