diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr56745.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr56745.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr56745.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr56745.c new file mode 100644 index 000000000..ee9ba051f --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr56745.c @@ -0,0 +1,15 @@ +/* PR rtl-optimization/56745 */ + +unsigned char a[6]; + +void +foo () +{ + int i; + for (i = 5; i >= 0; i++) + { + if (++a[i] != 0) + break; + ++a[i]; + } +} |