3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/test/cc-wrapper/nostdinc-main.c
Jörg Thalheim 96092dc936
stdenv: make -nostdinc work as intended
Right now we add glibc to search path also -nostdinc was provided,
which breaks projects providing their own gcc.
2020-07-23 08:39:46 +01:00

9 lines
170 B
C

// 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;
}