public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/autopar_devel] testsuite: Properly quote dejagnu negative line numbers
@ 2020-08-22 23:14 Giuliano Belinassi
0 siblings, 0 replies; only message in thread
From: Giuliano Belinassi @ 2020-08-22 23:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:73088fc4f25a86e0278f4ae8430bb03d6beaaa2e
commit 73088fc4f25a86e0278f4ae8430bb03d6beaaa2e
Author: David Edelsohn <dje.gcc@gmail.com>
Date: Thu Jul 2 15:44:35 2020 -0400
testsuite: Properly quote dejagnu negative line numbers
Some testcases specifically test for negative line numbers. Those tests with
bare line numbers may be parsed incorrectly by Tcl/Expect as invalid options.
This patch encloses the negative numbers in braces so that they are
recognized as an optional parameter.
gcc/testsuite/ChangeLog
2020-07-02 David Edelsohn <dje.gcc@gmail.com>
* gcc.dg/fixits-pr84852-1.c: Enclose negative line number in braces.
* gcc.dg/fixits-pr84852-2.c: Same.
* gcc.dg/pr89410-1.c: Same.
* gcc.dg/pr89410-2.c: Same.
Diff:
---
gcc/testsuite/gcc.dg/fixits-pr84852-1.c | 2 +-
gcc/testsuite/gcc.dg/fixits-pr84852-2.c | 2 +-
gcc/testsuite/gcc.dg/pr89410-1.c | 2 +-
gcc/testsuite/gcc.dg/pr89410-2.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/fixits-pr84852-1.c b/gcc/testsuite/gcc.dg/fixits-pr84852-1.c
index 346626b4eb9..0afd9e9fb4d 100644
--- a/gcc/testsuite/gcc.dg/fixits-pr84852-1.c
+++ b/gcc/testsuite/gcc.dg/fixits-pr84852-1.c
@@ -12,7 +12,7 @@
int foo (void) { return strlen(""); }
-/* { dg-warning "incompatible implicit declaration of built-in function 'strlen'" "" { target *-*-* } -812156810 } */
+/* { dg-warning "incompatible implicit declaration of built-in function 'strlen'" "" { target *-*-* } { -812156810 } } */
/* { dg-message "include '<string.h>' or provide a declaration of 'strlen'" "" { target *-*-* } 1 } */
#if 0
{ dg-begin-multiline-output "" }
diff --git a/gcc/testsuite/gcc.dg/fixits-pr84852-2.c b/gcc/testsuite/gcc.dg/fixits-pr84852-2.c
index 9bc70f59b59..ec52eb8c72c 100644
--- a/gcc/testsuite/gcc.dg/fixits-pr84852-2.c
+++ b/gcc/testsuite/gcc.dg/fixits-pr84852-2.c
@@ -12,7 +12,7 @@
int foo (void) { return strlen(""); }
-/* { dg-warning "incompatible implicit declaration of built-in function 'strlen'" "" { target *-*-* } -812156810 } */
+/* { dg-warning "incompatible implicit declaration of built-in function 'strlen'" "" { target *-*-* } { -812156810 } } */
/* { dg-message "include '<string.h>' or provide a declaration of 'strlen'" "" { target *-*-* } 1 } */
#if 0
{ dg-begin-multiline-output "" }
diff --git a/gcc/testsuite/gcc.dg/pr89410-1.c b/gcc/testsuite/gcc.dg/pr89410-1.c
index 73dc6d4de3f..7423c496001 100644
--- a/gcc/testsuite/gcc.dg/pr89410-1.c
+++ b/gcc/testsuite/gcc.dg/pr89410-1.c
@@ -5,5 +5,5 @@ int main(void)
/* This is 0xffffffff. */
#line 4294967295
#warning msg
- /* { dg-warning "msg" "" { target *-*-* } -1 } */
+ /* { dg-warning "msg" "" { target *-*-* } { -1 } } */
}
diff --git a/gcc/testsuite/gcc.dg/pr89410-2.c b/gcc/testsuite/gcc.dg/pr89410-2.c
index 76e781b09df..3cc6d6d063e 100644
--- a/gcc/testsuite/gcc.dg/pr89410-2.c
+++ b/gcc/testsuite/gcc.dg/pr89410-2.c
@@ -9,5 +9,5 @@ int main(void)
#line 9223372036854775807
^~~~~~~~~~~~~~~~~~~
{ dg-end-multiline-output "" } */
- /* { dg-warning "msg" "" { target *-*-* } -1 } */
+ /* { dg-warning "msg" "" { target *-*-* } { -1 } } */
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-22 23:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 23:14 [gcc/devel/autopar_devel] testsuite: Properly quote dejagnu negative line numbers Giuliano Belinassi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).