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
libstdc++: Fix find_last_set(simd_mask) to ignore padding bits
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
931004-12.c
blob
08f89ca5216511af4d8aa85e8bb9f7239f852fa8
1
#include <stdarg.h>
2
3
void
abort
(
void
);
4
void
exit
(
int
);
5
6
struct
tiny
7
{
8
char
c
;
9
char
d
;
10
char
e
;
11
};
12
13
void
14
f
(
int
n
, ...)
15
{
16
struct
tiny x
;
17
int
i
;
18
19
va_list
ap
;
20
va_start
(
ap
,
n
);
21
for
(
i
=
0
;
i
<
n
;
i
++)
22
{
23
x
=
va_arg
(
ap
,
struct
tiny
);
24
if
(
x
.
c
!=
i
+
10
)
25
abort
();
26
if
(
x
.
d
!=
i
+
20
)
27
abort
();
28
if
(
x
.
e
!=
i
+
30
)
29
abort
();
30
}
31
{
32
long
x
=
va_arg
(
ap
,
long
);
33
if
(
x
!=
123
)
34
abort
();
35
}
36
va_end
(
ap
);
37
}
38
39
int
40
main
(
void
)
41
{
42
struct
tiny x
[
3
];
43
x
[
0
].
c
=
10
;
44
x
[
1
].
c
=
11
;
45
x
[
2
].
c
=
12
;
46
x
[
0
].
d
=
20
;
47
x
[
1
].
d
=
21
;
48
x
[
2
].
d
=
22
;
49
x
[
0
].
e
=
30
;
50
x
[
1
].
e
=
31
;
51
x
[
2
].
e
=
32
;
52
f
(
3
,
x
[
0
],
x
[
1
],
x
[
2
], (
long
)
123
);
53
exit
(
0
);
54
}
55