From: David Edelsohn Date: Thu, 2 Jul 2020 19:44:35 +0000 (-0400) Subject: testsuite: Properly quote dejagnu negative line numbers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a63e1915e9ef12fea06fc4676c3e5fce58f26e0a;p=gcc.git 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 * 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 --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 '' 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 '' 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 } } */ }