mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Test modules for DF_1_NODELETE test.
This commit is contained in:
19
elf/nodel2mod1.c
Normal file
19
elf/nodel2mod1.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <stdlib.h>
|
||||
void
|
||||
foo (void)
|
||||
{
|
||||
exit (0);
|
||||
}
|
||||
|
||||
void
|
||||
__attribute__((destructor))
|
||||
bar (void)
|
||||
{
|
||||
static int i;
|
||||
foo ();
|
||||
++i;
|
||||
}
|
||||
void
|
||||
baz (void)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user