repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
pragma-pack-3.c
blob
e276bd007fe3fde8443e49af56584e7b021f2e98
1
/* PR c++/25294 */
2
/* { dg-options "-std=gnu99" } */
3
/* { dg-do run } */
4
5
extern
void
abort
(
void
);
6
7
struct
S
8
{
9
char
a
[
3
];
10
#pragma pack(1)
/* A block comment
11
that ends on the next line. */
12
struct
T
13
{
14
char
b
;
15
int
c
;
16
}
d
;
17
#pragma pack
/*/ */
()
// C++ comment
18
int
e
;
19
}
s
;
20
21
int
22
main
()
23
{
24
if
(
sizeof
(
int
) ==
4
&&
sizeof
(
s
) !=
12
)
25
abort
();
26
return
0
;
27
}