]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/parse/pragma3.C
PR c++/25294
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / parse / pragma3.C
1 // PR c++/25294
2 // { dg-do run }
3
4 extern "C" void abort (void);
5
6 struct S
7 {
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;
19
20 int
21 main ()
22 {
23 if (sizeof (int) == 4 && sizeof (s) != 12)
24 abort ();
25 return 0;
26 }