1 /* Test to verify that --param ssa_name_def_chain_limit can be used to
2 limit the maximum number of SSA_NAME assignments the warning follows.
4 { dg-options "-O2 -Wall -Wno-array-bounds --param ssa-name-def-chain-limit=5" } */
6 #define NOIPA __attribute__ ((noipa))
8 void* memset (void*, int, __SIZE_TYPE__
);
12 void sink (const char*, ...);
24 memset (p2
, 0, 8); // { dg-warning "\\\[-Wstringop-overflow" }
36 sink (p0
, p1
, p2
, p3
);
38 memset (p3
, 0, 7); // { dg-warning "\\\[-Wstringop-overflow" }
51 sink (p0
, p1
, p2
, p3
, p4
);
53 memset (p4
, 0, 6); // { dg-warning "\\\[-Wstringop-overflow" }
67 sink (p0
, p1
, p2
, p3
, p4
, p5
);
69 memset (p5
, 0, 5); // { dg-warning "\\\[-Wstringop-overflow" }
84 sink (p0
, p1
, p2
, p3
, p4
, p5
, p6
);
102 sink (p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
);
107 NOIPA
void g8 (int i
)
121 sink (p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
);