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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cleanup-7.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options "" } */
3
/* Verify that the search for function happens in the proper scope.  */
4
 
5
extern void exit(int);
6
extern void abort(void);
7
 
8
int main()
9
{
10
  auto void xyzzy(void *p __attribute__((unused)))
11
  {
12
    exit (0);
13
  }
14
 
15
  auto void doit ()
16
  {
17
    int x __attribute__((cleanup (xyzzy)));
18
  }
19
 
20
  doit ();
21
  abort ();
22
}

powered by: WebSVN 2.1.0

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