]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/Wstringop-overflow-72.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / Wstringop-overflow-72.c
CommitLineData
b48d4e68
MS
1/* PR middle-end/101854 - Invalid warning -Wstringop-overflow wrong argument
2 { dg-do compile }
3 { dg-options "-O2 -Wall" } */
4
5struct A { int a[5]; };
6
7struct A g (int*, int[6][8]);
8
9struct A f (void)
10{
11 int a[2];
12 return g (a, 0); // { dg-bogus "-Wstringop-overflow" }
13}