111
|
1 /* PR middle-end/40340 */
|
|
2 /* { dg-do compile } */
|
145
|
3 /* { dg-options "-O2 -Wall -Wno-system-headers -fno-tree-dse" } */
|
111
|
4
|
|
5 #include "pr40340.h"
|
|
6
|
|
7 static inline
|
|
8 __attribute__ ((always_inline))
|
|
9 void
|
|
10 test (char *p)
|
|
11 {
|
|
12 memset (p, 0, 6);
|
|
13 }
|
|
14
|
|
15 int
|
|
16 main (void)
|
|
17 {
|
|
18 char buf[4];
|
|
19 test (buf);
|
|
20 return 0;
|
|
21 }
|
|
22
|
145
|
23 /* { dg-warning "\\\[-Warray-bounds|-Wstringop-overflow" "" { target *-*-* } 10 } */
|
111
|
24 /* { dg-message "file included" "In file included" { target *-*-* } 0 } */
|