public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6413] gcc.dg/overflow-warn-9.c: Fix LLP64
@ 2023-03-02 13:42 Jonathan Yong
  0 siblings, 0 replies; only message in thread
From: Jonathan Yong @ 2023-03-02 13:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:17301aeb9d3e25144558e6892b80851e29d4d876

commit r13-6413-g17301aeb9d3e25144558e6892b80851e29d4d876
Author: Jonathan Yong <10walls@gmail.com>
Date:   Mon Feb 27 09:49:31 2023 +0000

    gcc.dg/overflow-warn-9.c: Fix LLP64
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/overflow-warn-9.c: Add LLP64 case.
    
    Signed-off-by: Jonathan Yong <10walls@gmail.com>

Diff:
---
 gcc/testsuite/gcc.dg/overflow-warn-9.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/overflow-warn-9.c b/gcc/testsuite/gcc.dg/overflow-warn-9.c
index 57c0f17bc91..ae588bd8491 100644
--- a/gcc/testsuite/gcc.dg/overflow-warn-9.c
+++ b/gcc/testsuite/gcc.dg/overflow-warn-9.c
@@ -59,7 +59,8 @@ const struct Types t1 = {
   .ui = UINT_MAX + 1L,      /* { dg-warning "signed conversion from .long int. to .unsigned int. changes value from .4294967296. to .0." "lp64" { target lp64 } } */
   .ui = UINT_MAX + 1LU,     /* { dg-warning "conversion from .long unsigned int. to .unsigned int. changes value from .4294967296. to .0." "lp64" { target lp64 } } */
 
-  .sl = LONG_MAX + 1LU,     /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .9223372036854775808. to .-9223372036854775808." "not-ilp32" { target { ! ilp32 } } } */
+  .sl = LONG_MAX + 1LU,     /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .9223372036854775808. to .-9223372036854775808." "lp64" { target lp64 } } */
   /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .2147483648. to .-2147483648." "ilp32" { target ilp32 } .-1 } */
+  /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .2147483648. to .-2147483648." "llp64" { target llp64 } .-2 } */
   .ul = ULONG_MAX + 1LU     /* there should be some warning here */
 };

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-02 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-02 13:42 [gcc r13-6413] gcc.dg/overflow-warn-9.c: Fix LLP64 Jonathan Yong

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).