diff options
Diffstat (limited to 'tools/gyp/test/rules-use-built-dependencies/src/main.cc')
-rw-r--r-- | tools/gyp/test/rules-use-built-dependencies/src/main.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/gyp/test/rules-use-built-dependencies/src/main.cc b/tools/gyp/test/rules-use-built-dependencies/src/main.cc new file mode 100644 index 0000000000..0f879a7d18 --- /dev/null +++ b/tools/gyp/test/rules-use-built-dependencies/src/main.cc @@ -0,0 +1,16 @@ +// Copyright (c) 2013 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +#include <stdio.h> + +int main(int argc, char *argv[]) { + if (argc < 2) { + return 2; + } + FILE* file; + file = fopen(argv[1], "wb"); + const char output[] = "output"; + fwrite(output, 1, sizeof(output) - 1, file); + fclose(file); + return 0; +} |