Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / parse / pragma3.C
blob36d7a8c6284bfe6998f4150490ce0aaaa13a5cd0
1 // PR c++/25294
2 // { dg-do run }
4 extern "C" void abort (void);
6 struct S
8   char a[3];
9 #pragma pack(1) /* A block comment
10                    that ends on the next line.  */
11   struct T
12   {
13     char b;
14     int c;
15   } d;
16 #pragma pack /*/ */ () // C++ comment
17   int e;
18 } s;
20 int
21 main ()
23   if (sizeof (int) == 4 && sizeof (s) != 12)
24     abort ();
25   return 0;