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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr49307.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR target/49307 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -fpic -fstack-protector" } */
4
/* { dg-require-effective-target fpic } */
5
/* { dg-require-effective-target fstack_protector } */
6
 
7
extern void bar (char **pp, void *vp);
8
extern void free (void *p);
9
 
10
int
11
foo (void)
12
{
13
  char *p;
14
  char fext[128];
15
 
16
  p = fext;
17
  bar (&p, (void *)0);
18
  if (p)
19
    free (p);
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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