mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
28 lines
382 B
C
28 lines
382 B
C
/* PR c++/25294 */
|
|
/* { dg-options "-std=gnu99" } */
|
|
/* { dg-do run } */
|
|
|
|
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;
|
|
}
|