Commit efdf3f4d by Bernd Edlinger Committed by Bernd Edlinger

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
parent 5d88af08
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment