mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 07:31:54 +00:00
CC Attribute Test: cleanup. DO NOT INCLUDE IN PRODUCTION
This commit is contained in:
parent
0e1fbaa5b2
commit
d6241b24a2
@ -274,6 +274,12 @@ rlookup(unsigned long a)
|
|||||||
debug("Not found.\n");
|
debug("Not found.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
my_check(int *whatever UNUSED)
|
||||||
|
{
|
||||||
|
printf("Everything works well.\n");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* resource_init - initialize the resource manager
|
* resource_init - initialize the resource manager
|
||||||
*
|
*
|
||||||
@ -284,6 +290,7 @@ rlookup(unsigned long a)
|
|||||||
void
|
void
|
||||||
resource_init(void)
|
resource_init(void)
|
||||||
{
|
{
|
||||||
|
__attribute__((cleanup(my_check))) int test = 42;
|
||||||
resource_sys_init();
|
resource_sys_init();
|
||||||
|
|
||||||
root_pool.r.class = &pool_class;
|
root_pool.r.class = &pool_class;
|
||||||
|
Loading…
Reference in New Issue
Block a user