OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/28261
[pf3gnuchains/gcc-fork.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
}