summaryrefslogtreecommitdiffstats
path: root/tests/foo.c
blob: 48f69536d85a72c2881577871f563279e6429378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

/* Include a bogus .interp section in libfoo.so (NIXPKGS-98).
   Borrowed from Glibc. */
const char __invoke_dynamic_linker__[] __attribute__ ((section (".interp"))) = "/foo/bar";

int bar();

int foo()
{
    printf("This is foo()!\n");
    return 12 + bar();
}