Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / misleading-pragma-align-pack-diagnostics.c
blobcd33d7c68646fab2ec63a5f7d50b956ced18e3c8
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
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
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
15 #include "pragma-align-pack1.h"
17 #ifdef RECORD_ALIGN
18 #pragma align = reset
19 #endif