overflow-negate-2.c (main): Use signed char.

2014-02-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/ubsan/overflow-negate-2.c (main): Use signed char.

From-SVN: r207786
This commit is contained in:
Bernd Edlinger 2014-02-14 14:25:56 +00:00 committed by Bernd Edlinger
parent 5d88af08e6
commit efdf3f4df5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-02-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
* c-c++-common/ubsan/overflow-negate-2.c (main): Use signed char.
2014-02-14 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20140213.c: New test.

View File

@ -13,7 +13,7 @@
int
main (void)
{
volatile char c = -SCHAR_MIN;
volatile signed char c = -SCHAR_MIN;
CHECK (c, -128);
volatile short s = -SHRT_MIN;