repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.dg
/
parse
/
pragma3.C
blob
36d7a8c6284bfe6998f4150490ce0aaaa13a5cd0
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
}