aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/test/cc-wrapper/nostdinc-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/test/cc-wrapper/nostdinc-main.c')
-rw-r--r--nixpkgs/pkgs/test/cc-wrapper/nostdinc-main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/test/cc-wrapper/nostdinc-main.c b/nixpkgs/pkgs/test/cc-wrapper/nostdinc-main.c
new file mode 100644
index 00000000000..f71d155b1b2
--- /dev/null
+++ b/nixpkgs/pkgs/test/cc-wrapper/nostdinc-main.c
@@ -0,0 +1,8 @@
+// This one should not come from libc because of -nostdinc
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+ // provided by our own stdio.h
+ foo();
+ return 0;
+}