mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 21:41:14 +08:00
Improve PR64242 testcase
Clear the input array to avoid the testcase accidentally passing with an incorrect frame pointer. Committed as obvious. testsuite/ PR middle-end/64242 * gcc.c-torture/execute/pr64242.c: Improve test. From-SVN: r272382
This commit is contained in:
parent
b0c849fadb
commit
2fcae10971
@ -1,3 +1,8 @@
|
||||
2019-06-17 Wilco Dijkstra <wdijkstr@arm.com>
|
||||
|
||||
PR middle-end/64242
|
||||
* gcc.c-torture/execute/pr64242.c: Improve test.
|
||||
|
||||
2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
||||
|
||||
* gcc.target/msp430/mspabi_sllll.c: New test.
|
||||
|
@ -7,6 +7,7 @@ broken_longjmp (void *p)
|
||||
{
|
||||
void *buf[32];
|
||||
__builtin_memcpy (buf, p, 5 * sizeof (void*));
|
||||
__builtin_memset (p, 0, 5 * sizeof (void*));
|
||||
/* Corrupts stack pointer... */
|
||||
__builtin_longjmp (buf, 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user