diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-06-06 14:42:08 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-06-06 14:42:08 +0200 |
commit | 04b6e0b2481dea9739b3dd29a42c2e2bc5baa333 (patch) | |
tree | cafc8a33f5f2308f899755a45eae03a15f44f543 /gcc/testsuite/gcc.dg/torture/pr57343.c | |
parent | a488009075e657f7df544e4ced8cbd7af2b58403 (diff) | |
parent | 3a930d3fc68785662f5f3f4af02474cb21a62056 (diff) | |
download | gcc-04b6e0b2481dea9739b3dd29a42c2e2bc5baa333.tar.gz |
Merge commit 'refs/top-bases/baseline' into baseline
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr57343.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr57343.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr57343.c b/gcc/testsuite/gcc.dg/torture/pr57343.c new file mode 100644 index 00000000000..b05bad5cb43 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr57343.c @@ -0,0 +1,22 @@ +/* { dg-do run } */ + +int c = 0; + +int +main () +{ + int i, f = 1; + for (i = 0; i < 5; i++) + { + --c; + unsigned char h = c * 100; + if (h == 0) + { + f = 0; + break; + } + } + if (f != 1) + __builtin_abort (); + return 0; +} |