pr37969.c: New testcase.
2008-11-06 Richard Guenther <rguenther@suse.de> * gcc.dg/c-torture/pr37969.c: New testcase. From-SVN: r141642
This commit is contained in:
parent
6818f0fc84
commit
1ddb9ec910
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-11-06 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* gcc.dg/torture/pr37969.c: New testcase.
|
||||
|
||||
2008-11-05 Janis Johnson <janis187@us.ibm.com>
|
||||
|
||||
* lib/c-torture.exp: Use ADDITIONAL_TORTURE_OPTIONS if defined.
|
||||
|
|
20
gcc/testsuite/gcc.dg/torture/pr37969.c
Normal file
20
gcc/testsuite/gcc.dg/torture/pr37969.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-funswitch-loops" } */
|
||||
|
||||
void foo(double);
|
||||
void CreateDefaultTexture(double mnMinimum, double mnMaximum,
|
||||
unsigned short nCreateWhat)
|
||||
{
|
||||
double d = 0.0;
|
||||
for(;;)
|
||||
{
|
||||
if(nCreateWhat & (0x0001)
|
||||
&& mnMinimum != 0.0)
|
||||
d = mnMinimum;
|
||||
if(nCreateWhat & (0x0002)
|
||||
&& mnMaximum != 0.0)
|
||||
d = mnMaximum;
|
||||
foo(d);
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue