summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/pragma-pack-5.c
blob: 897686f772ae547c383e4297cd9b56febb6609b8 (plain)
1
2
3
4
5
6
7
8
9
10
/* Check that pragma pack overrides STRUCTURE_SIZE_BOUNDARY.  */
/* { dg-do compile } */

#pragma pack(1)
struct S
{
  char a;
};

int test[sizeof(struct S) == 1 ? 1: -1];
OpenPOWER on IntegriCloud