Commit 6606b43e by Max Ostapenko Committed by Maxim Ostapenko

no-asan-stack.c: New test.

2014-01-10  Max Ostapenko  <m.ostapenko@partner.samsung.com>

	* c-c++-common/asan/no-asan-stack.c: New test.

From-SVN: r206515
parent 87ed883e
2014-01-10 Max Ostapenko <m.ostapenko@partner.samsung.com>
* c-c++-common/asan/no-asan-stack.c: New test.
2014-01-10 Jakub Jelinek <jakub@redhat.com>
PR middle-end/59670
......
/* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && lp64 } } } */
/* { dg-options "--param asan-stack=0" } */
#include <string.h>
volatile int one = 1;
int
main ()
{
volatile char a1[] = {one, 2, 3, 4};
volatile char a2[] = {1, 2*one, 3, 4};
volatile int res = memcmp ((void *)a1,(void *)a2, 5 + one);
return 0;
}
/* { dg-final { scan-assembler-not "0x41b58ab3|0x41B58AB3|1102416563" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment