Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pragma-pack-3.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR c++/25294 */ /* { dg-options "-std=gnu99" } */ /* Epiphany makes struct S 8-byte aligned. */ /* { dg-do run { target { ! epiphany-*-* } } } */ extern void abort (void); struct S { char a[3]; #pragma pack(1) /* A block comment that ends on the next line. */ struct T { char b; int c; } d; #pragma pack /*/ */ () // C++ comment int e; } s; int main () { if (sizeof (int) == 4 && sizeof (s) != 12) abort (); return 0; }