diff mbox series

Remove VxWorks-specific test directives in g++.dg/warn/miss-format-1.C

Message ID orh7odh60n.fsf@lxoliva.fsfla.org
State New
Headers show
Series Remove VxWorks-specific test directives in g++.dg/warn/miss-format-1.C | expand

Commit Message

Alexandre Oliva Dec. 22, 2020, 9:42 p.m. UTC
These are no longer applicable.

Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
Ok to install?


from Jerome Lambourg <lambourg@adacore.com>
for  gcc/testsuite/ChangeLog

	* g++.dg/warn/miss-format-1.C: Remove vxworks-specific test
	directives.
---
 gcc/testsuite/g++.dg/warn/miss-format-1.C |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Mike Stump Dec. 29, 2020, 6:35 p.m. UTC | #1
On Dec 22, 2020, at 1:42 PM, Alexandre Oliva <oliva@adacore.com> wrote:
> 
> These are no longer applicable.
> 
> Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
> Ok to install?

Ok.
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/warn/miss-format-1.C b/gcc/testsuite/g++.dg/warn/miss-format-1.C
index 65a34282ad784..444afb64fcd1b 100644
--- a/gcc/testsuite/g++.dg/warn/miss-format-1.C
+++ b/gcc/testsuite/g++.dg/warn/miss-format-1.C
@@ -21,9 +21,7 @@  bar (const char *fmt, ...)
 {
   va_list ap;
   va_start (ap, fmt);
-  vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-vxworks* } } */
-  /* VxWorks does not provide vscanf, either in kernel or RTP mode.  */
-  /* { dg-error "not declared" "" { target *-*-vxworks* } .-2 } */
+  vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" } */
   va_end (ap);
 }