diff options
author | Mark Murray <mark.murray@linaro.org> | 2017-10-12 11:44:14 +0100 |
---|---|---|
committer | Mark Murray <mark.murray@arm.com> | 2017-10-12 11:48:16 +0100 |
commit | 50008c2963ce0b77acda184feaf3df841ef9ba33 (patch) | |
tree | 7d6e95fe45613b1a8adcd5b4af78ad55534e6f5d /gcc/testsuite/gcc.dg/torture/pr80341.c | |
parent | d273604ec799881da2a3875572a70ca0ff584399 (diff) | |
download | gcc-50008c2963ce0b77acda184feaf3df841ef9ba33.tar.gz |
Merge branches/gcc-6-branch rev 253668
Change-Id: I02945f1bb64c8600fc82e0ddc3230ebcad1354eb
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr80341.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr80341.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr80341.c b/gcc/testsuite/gcc.dg/torture/pr80341.c new file mode 100644 index 00000000000..c9e12396d07 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr80341.c @@ -0,0 +1,20 @@ +/* { dg-do run } */ +/* { dg-additional-options "-Wno-overflow" } */ +/* { dg-require-effective-target int32plus } */ + +const signed char c = -84; +signed char s; + +void +foo () +{ + s = (unsigned short) c / -55; +} + +int +main () +{ + foo (); + if (s != 90) + __builtin_abort (); +} |