This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add testcase for PR56398


On Thu, Feb 21, 2013 at 11:05 AM, Marek Polacek <polacek@redhat.com> wrote:
> This adds a reduced testcase for PR56398.  Ok for trunk?

Ok.

Thanks,
Richard.

> 2013-02-21  Marek Polacek  <polacek@redhat.com>
>
>         PR tree-optimization/56398
>         * g++.dg/torture/pr56398.C: New test.
>
> --- gcc/g++.dg/torture/pr56398.C.mp     2013-02-21 10:58:14.388913070 +0100
> +++ gcc/g++.dg/torture/pr56398.C        2013-02-21 10:58:53.301026474 +0100
> @@ -0,0 +1,22 @@
> +// { dg-do compile }
> +// { dg-options "-g" }
> +
> +namespace
> +{
> +#0 "/usr/include/c/4.8/bits/postypes.h" 3
> +}
> +
> +vtkpow (int b)
> +{
> +  int a1;
> +  int b1;
> +  int c;
> +  while (b1)
> +    {
> +      while (b)
> +    b1 = 0;
> +      b1 = b1 - 1;
> +      c = c * a1;
> +    }
> +  return c;
> +}
>
>         Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]