New test for PR56398.

From-SVN: r196199
This commit is contained in:
Marek Polacek 2013-02-21 10:21:19 +00:00 committed by Marek Polacek
parent a0ad148fe3
commit 267499fa59
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-02-21 Marek Polacek <polacek@redhat.com>
PR tree-optimization/56398
* g++.dg/torture/pr56398.C: New test.
2013-02-21 Jakub Jelinek <jakub@redhat.com>
PR inline-asm/56405

View File

@ -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;
}