diff options
Diffstat (limited to 'Tests/Wrapping/Wrap.c')
-rw-r--r-- | Tests/Wrapping/Wrap.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Tests/Wrapping/Wrap.c b/Tests/Wrapping/Wrap.c index 5b47c96..8131639 100644 --- a/Tests/Wrapping/Wrap.c +++ b/Tests/Wrapping/Wrap.c @@ -1,7 +1,17 @@ #include <stdio.h> -int main() +int main(int argc, const char* argv[]) { - printf("Hello\n"); + FILE* fout = fopen(argv[argc-1], "w"); + printf("Wrap creating \"%s\"\n", argv[argc-1]); + if(fout) + { + fprintf(fout, "int foo() { return 0; }\n"); + fclose(fout); + } + else + { + return -1; + } return 0; } |