Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr84383.c
blob: b46f7819b748998c998cc3d4f95fc1cebe16bdfd [
file
] [
log
] [
blame
]
/* PR tree-optimization/84383 */
struct
S
{
char
*
s
;
};
void
bar
(
struct
S
*);
void
foo
(
int
a
,
char
*
b
)
{
struct
S c
[
4
];
bar
(
c
);
__builtin_strncpy
(
c
[
a
].
s
,
b
,
32
);
c
[
a
].
s
[
31
]
=
'\0'
;
bar
(
c
);
}