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:
parent
5d88af08e6
commit
efdf3f4df5
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user