BUG: Fix find_* search order with path suffixes
[cmake.git] / Tests / Wrapping / Wrap.c
blob0a1ff501e815b527d9829c5d94d5f4030bee4091
1 #include <stdio.h>
3 #ifdef __CLASSIC_C__
4 int main(argc, argv)
5 int argc;
6 char ** argv;
7 #else
8 int main(int argc, const char* argv[])
9 #endif
11 FILE* fout = fopen(argv[argc-1], "w");
12 printf("Wrap creating \"%s\"\n", argv[argc-1]);
13 if(fout)
15 fprintf(fout, "int foo() { return 0; }\n");
16 fclose(fout);
18 else
20 return -1;
22 return 0;