summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/const-high-part.c
blob: 95e2059704e803f624b43d52ea6a4a6ba00dd20b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}