OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr36321.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
extern void abort (void);
2
 
3
extern __SIZE_TYPE__ strlen (const char *);
4
void foo(char *str)
5
{
6
  int len2 = strlen (str);
7
  char *a = (char *) __builtin_alloca (0);
8
  char *b = (char *) __builtin_alloca (len2*3);
9
 
10
  if ((int) (a-b) < (len2*3))
11
    {
12
#ifdef _WIN32
13
      abort ();
14
#endif
15
      return;
16
    }
17
}
18
 
19
static char * volatile argp = "pr36321.x";
20
 
21
int main(int argc, char **argv)
22
{
23
  foo (argp);
24
  return 0;
25
}
26
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.