summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/suspicious-pragma-pack.m
blob: 0befcaa86dc63b28512888b6e1a93e80f041a461 (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -Wpragma-pack-suspicious-include -triple i686-apple-darwin9 -fsyntax-only -I%S/Inputs -verify %s

#pragma pack (push, 1) // expected-note {{previous '#pragma pack' directive that modifies alignment is here}}
#import "empty.h" // expected-warning {{non-default #pragma pack value changes the alignment of struct or union members in the included file}}

#pragma pack (pop)