diff options
author | chefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-10 09:16:39 +0000 |
---|---|---|
committer | chefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-10 09:16:39 +0000 |
commit | a5e3873d0cc9fb910e3cc2b6b28b383fc9f701b5 (patch) | |
tree | fcae7db3188f9db2f8a4277d2f5583839a7520a8 | |
parent | 514db0f0303c4ab6fbd645034e57f5d23302b573 (diff) | |
download | gcc-a5e3873d0cc9fb910e3cc2b6b28b383fc9f701b5.tar.gz |
2014-01-10 Max Ostapenko <m.ostapenko@partner.samsung.com>
* c-c++-common/asan/no-asan-stack.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206515 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/asan/no-asan-stack.c | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9176d95ebe0..4a9b5637c83 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gcc/testsuite/c-c++-common/asan/no-asan-stack.c b/gcc/testsuite/c-c++-common/asan/no-asan-stack.c new file mode 100644 index 00000000000..0f65ab3f7ac --- /dev/null +++ b/gcc/testsuite/c-c++-common/asan/no-asan-stack.c @@ -0,0 +1,16 @@ +/* { 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" } } */ |