Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test modules for DF_1_NODELETE test.
  • Loading branch information
Ulrich Drepper committed Jan 12, 2003
1 parent 3c172bd commit 26a676d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions elf/nodel2mod1.c
@@ -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)
{
}
7 changes: 7 additions & 0 deletions elf/nodel2mod2.c
@@ -0,0 +1,7 @@
void
__attribute__((constructor))
xxx (void)
{
extern void baz (void);
baz ();
}
1 change: 1 addition & 0 deletions elf/nodel2mod3.c
@@ -0,0 +1 @@
int x;

0 comments on commit 26a676d

Please sign in to comment.