diff mbox

[GCC/testsuite] Require c99_runtime for pr79800.c

Message ID 2621e203-e52c-912c-60ad-2b9761e65f51@foss.arm.com
State New
Headers show

Commit Message

Thomas Preudhomme April 7, 2017, 9:45 a.m. UTC
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.preudhomme@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 mbox

Patch

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"