summaryrefslogtreecommitdiff
path: root/deps/gyp/test/ninja/action_dependencies/src/b.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/ninja/action_dependencies/src/b.c')
-rw-r--r--deps/gyp/test/ninja/action_dependencies/src/b.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/gyp/test/ninja/action_dependencies/src/b.c b/deps/gyp/test/ninja/action_dependencies/src/b.c
new file mode 100644
index 0000000000..824464695a
--- /dev/null
+++ b/deps/gyp/test/ninja/action_dependencies/src/b.c
@@ -0,0 +1,18 @@
+/* Copyright (c) 2012 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>
+
+#include "b.h"
+
+int main(int argc, char** argv) {
+ FILE* f;
+ if (argc < 2)
+ return 1;
+ f = fopen(argv[1], "wt");
+ fprintf(f, "#define VALUE %d\n", funcA());
+ fclose(f);
+ return 0;
+}