diff options
Diffstat (limited to 'Tests/ExportImport/Export/testExe1.c')
-rw-r--r-- | Tests/ExportImport/Export/testExe1.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/testExe1.c b/Tests/ExportImport/Export/testExe1.c new file mode 100644 index 0000000..39177d0 --- /dev/null +++ b/Tests/ExportImport/Export/testExe1.c @@ -0,0 +1,24 @@ +#include <stdio.h> + +int main(int argc, const char* argv[]) +{ + if(argc < 2) + { + fprintf(stderr, "Must specify output file.\n"); + return 1; + } + { + FILE* f = fopen(argv[1], "w"); + if(f) + { + fprintf(f, "int generated_by_testExe1() { return 0; }\n"); + fclose(f); + } + else + { + fprintf(stderr, "Error writing to %s\n", argv[1]); + return 1; + } + } + return 0; +} |