Require alloca for c-c++-common/Wstringop-truncation.c
2017-11-14 Tom de Vries <tom@codesourcery.com>
* c-c++-common/Wstringop-truncation.c: Require effective target alloca.
---
gcc/testsuite/c-c++-common/Wstringop-truncation.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -1,6 +1,7 @@
/* PR middle-end/81117 - Improve buffer overflow checking in strncpy
{ dg-do compile }
- { dg-options "-O2 -Wstringop-truncation -Wno-stringop-overflow -ftrack-macro-expansion=0" } */
+ { dg-options "-O2 -Wstringop-truncation -Wno-stringop-overflow -ftrack-macro-expansion=0" }
+ { dg-require-effective-target alloca } */
typedef __SIZE_TYPE__ size_t;