summaryrefslogtreecommitdiff
path: root/deps/gyp/test/rules-use-built-dependencies/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/rules-use-built-dependencies/src/main.cc')
-rw-r--r--deps/gyp/test/rules-use-built-dependencies/src/main.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/gyp/test/rules-use-built-dependencies/src/main.cc b/deps/gyp/test/rules-use-built-dependencies/src/main.cc
new file mode 100644
index 0000000000..937d284599
--- /dev/null
+++ b/deps/gyp/test/rules-use-built-dependencies/src/main.cc
@@ -0,0 +1,17 @@
+// 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;
+}
+