1 // RUN: %clang_cc1 -fsyntax-only -Wno-pragma-pack -verify %s
3 // Note that this puts the expected lines before the directives to work around
4 // limitations in the -verify mode.
6 /* expected-warning {{missing '(' after '#pragma pack'}}*/ #pragma pack 10
10 /*expected-warning {{unknown action for '#pragma pack'}}*/ #pragma pack(hello)
14 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,)
15 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,)
16 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(pop,)
19 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,i,
20 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,i,)
21 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,i,help)
24 /* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push,8,
25 /* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push,8,)
26 /* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push,i,8
27 #pragma pack(push,i,8)
29 /* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push
32 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ _Pragma("pack(push,)")
48 _Pragma("pack(push, 1)") struct PR28094
{
50 } _Pragma("pack(pop)");