summary refs log tree commit diff
path: root/pkgs/test/cc-wrapper/nostdinc-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/test/cc-wrapper/nostdinc-main.c')
-rw-r--r--pkgs/test/cc-wrapper/nostdinc-main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/test/cc-wrapper/nostdinc-main.c b/pkgs/test/cc-wrapper/nostdinc-main.c
new file mode 100644
index 00000000000..f71d155b1b2
--- /dev/null
+++ b/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;
+}