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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstringop-overflow-72.c
blob
c10773e90a364f3549c3e5e73aeffcf22ef6e9f5
1
/* PR middle-end/101854 - Invalid warning -Wstringop-overflow wrong argument
2
{ dg-do compile }
3
{ dg-options "-O2 -Wall" } */
4
5
struct
A
{
int
a
[
5
]; };
6
7
struct
A
g
(
int
*,
int
[
6
][
8
]);
8
9
struct
A
f
(
void
)
10
{
11
int
a
[
2
];
12
return
g
(
a
,
0
);
// { dg-bogus "-Wstringop-overflow" }
13
}