aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp/_Pragma1.C
blob: 2a4086b8125a853f2cb9557eea79354dd3eba993 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/27748
// This is supposed to succeed only if
// the target doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION.
// { dg-do compile { target { ! { *-*-solaris2* } } } }

#define push bar
#define foo _Pragma ("pack(push)")
foo
int i;
#pragma pack(pop)