aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr50333.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr50333.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/torture/pr50333.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr50333.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr50333.c
new file mode 100644
index 000000000..47577dccc
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr50333.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+
+static inline void
+unext(unsigned int *_ui, unsigned _len, unsigned int _ui0)
+{
+ unsigned j = 1;
+ while (++j<_len)
+ ;
+ _ui[j-1]=_ui0;
+}
+unsigned int
+ncwrs_urow(unsigned _n, unsigned _k, unsigned int *_u)
+{
+ unsigned k;
+ for(k=2; k<_n; k++)
+ unext(_u+1,_k+1,1);
+}