Test modules for DF_1_NODELETE test.
This commit is contained in:
parent
3c172bd1b9
commit
26a676d0aa
|
@ -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)
|
||||
{
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
void
|
||||
__attribute__((constructor))
|
||||
xxx (void)
|
||||
{
|
||||
extern void baz (void);
|
||||
baz ();
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
int x;
|
Loading…
Reference in New Issue