Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target alloca } */ /* This testcase checks that allocas and VLAs inside loop are correctly unpoisoned. */ @@ -16,7 +17,7 @@ top = &x; volatile char array[len]; assert(!((uintptr_t) array & 31L)); - alloca(len); + void *p = __builtin_alloca(len); for (int i = 0; i < thirty_two; ++i) { char array[i]; bot = array;