1// PR c++/27748
2// This is supposed to succeed only if
3// the target defines HANDLE_PRAGMA_PACK_PUSH_POP
4// and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION.
5// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* mips-sgi-irix* sh*-[us]*-elf m32c-*-* *-*-vxworks alpha*-dec-osf* } } } }
6
7#define push bar
8#define foo _Pragma ("pack(push)")
9foo
10int i;
11#pragma pack(pop)
12