nixpkgs-tests: add basic test for buildInputs

This commit is contained in:
Daiderd Jordan
2017-09-10 22:49:47 +02:00
parent 19c4673310
commit b91307c2e1
7 changed files with 105 additions and 0 deletions
+14
View File
@@ -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;
}