Hi,

Testcase gcc.dg/tree-ssa/pr79800.c is run unconditionally. Yet, it uses
the 'a' conversion specifier in sprintf which is only available in C99
or later version of the C standard. This commit adds a c99_runtime
requirement.

ChangeLog entry is as follows:

*** gcc/testsuite/ChangeLog ***

2017-04-07  Thomas Preud'homme  <thomas.preudho...@arm.com>

        * gcc.dg/tree-ssa/pr79800.c: Require c99_runtime.


Testing: test fails with newlib without c99 specifier support and is
marked UNSUPPORTED with this patch.

Committed as obvious.

Best regards,

Thomas
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c
index 180a6e7863141cae15958df6fff5c7410ce9e39f..030e276698d105dd1ab1a7b775fb5fef48e02c59 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c
@@ -1,6 +1,6 @@
 /* PR 79800 - wrong snprintf result range with precision in a narrow
    negative-positive range
-   { dg-do "run" }
+   { dg-do "run" { target c99_runtime } }
    { dg-options "-O2 -Wall" } */
 
 #define FMT "%.*a"

Reply via email to