summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/same-source-file-name/src/prog1.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/gyp/test/same-source-file-name/src/prog1.c')
-rw-r--r--third_party/python/gyp/test/same-source-file-name/src/prog1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/same-source-file-name/src/prog1.c b/third_party/python/gyp/test/same-source-file-name/src/prog1.c
new file mode 100644
index 0000000000..604e2b9c98
--- /dev/null
+++ b/third_party/python/gyp/test/same-source-file-name/src/prog1.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+extern void func(void);
+
+int main(void)
+{
+ printf("Hello from prog1.c\n");
+ func();
+ /*
+ * Uncomment to test same-named files in different directories,
+ * which Visual Studio doesn't support.
+ subdir1_func();
+ subdir2_func();
+ */
+ return 0;
+}