diff options
Diffstat (limited to 'pkgs/test/stdenv-inputs/lib-main.c')
-rw-r--r-- | pkgs/test/stdenv-inputs/lib-main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/test/stdenv-inputs/lib-main.c b/pkgs/test/stdenv-inputs/lib-main.c new file mode 100644 index 0000000000000..c9488fe43e559 --- /dev/null +++ b/pkgs/test/stdenv-inputs/lib-main.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +extern unsigned int foo(void); +extern unsigned int bar(void); + +int main(int argc, char **argv) +{ + if (foo() != 42) + return 1; + if (bar() != 42) + return 1; + fprintf(stderr, "ok\n"); + return 0; +} |