]>
Commit | Line | Data |
---|---|---|
b48d4e68 MS |
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 | } |