* gcc.target/mips/const-high-part.c: New test.

From-SVN: r147213
This commit is contained in:
James E. Wilson 2009-05-07 00:24:53 +00:00 committed by Jim Wilson
parent 8aa7ac967f
commit e289f7a42d
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2009-05-06 James E. Wilson <wilson@codesourcery.com>
* gcc.target/mips/const-high-part.c: New test.
2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/40050

View file

@ -0,0 +1,19 @@
/* { dg-require-effective-target int32plus } */
/* { dg-require-effective-target size32plus } */
char *buf;
int buflen;
inline int
sub (int length)
{
if (length <= buflen)
buf[length] = '\0';
return 0;
}
int
sub2 (void)
{
return sub (0x7fffffff);
}