* gcc.target/mips/const-high-part.c: New test.
From-SVN: r147213
This commit is contained in:
parent
8aa7ac967f
commit
e289f7a42d
2 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
19
gcc/testsuite/gcc.c-torture/compile/const-high-part.c
Normal file
19
gcc/testsuite/gcc.c-torture/compile/const-high-part.c
Normal 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);
|
||||
}
|
Loading…
Add table
Reference in a new issue