* gcc.dg/990524-1.c: New test.
From-SVN: r27114
This commit is contained in:
parent
9208b154a2
commit
35676551af
@ -1,3 +1,7 @@
|
||||
Mon May 24 00:01:52 1999 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.dg/990524-1.c: New test.
|
||||
|
||||
Sun May 23 21:18:12 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
|
||||
|
||||
* gcc.c-torture/compile/990523-1.c: New test.
|
||||
|
38
gcc/testsuite/gcc.dg/990524-1.c
Normal file
38
gcc/testsuite/gcc.dg/990524-1.c
Normal file
@ -0,0 +1,38 @@
|
||||
/* { dg-do compile { target i?86-*-* } } */
|
||||
/* { dg-options "-O2 -march=pentiumpro" } */
|
||||
|
||||
typedef struct t_anim_info {
|
||||
char *new_filename;
|
||||
long first_frame_nr;
|
||||
} t_anim_info;
|
||||
static int
|
||||
p_frames_to_multilayer(t_anim_info *ainfo_ptr,
|
||||
long range_from, long range_to)
|
||||
{
|
||||
long l_cur_frame_nr;
|
||||
long l_step, l_begin, l_end;
|
||||
int l_tmp_image_id;
|
||||
int l_new_image_id;
|
||||
if(range_from > range_to)
|
||||
{
|
||||
l_step = -1;
|
||||
if(range_to < ainfo_ptr->first_frame_nr)
|
||||
{ l_begin = ainfo_ptr->first_frame_nr;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
l_step = 1;
|
||||
}
|
||||
l_cur_frame_nr = l_begin;
|
||||
while(1)
|
||||
{
|
||||
if(ainfo_ptr->new_filename == ((void *)0) )
|
||||
if(l_tmp_image_id < 0)
|
||||
gimp_image_delete(l_tmp_image_id);
|
||||
if(l_cur_frame_nr == l_end)
|
||||
break;
|
||||
l_cur_frame_nr += l_step;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user