summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Ninja/SubDirPrefix/greeting.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Ninja/SubDirPrefix/greeting.c')
-rw-r--r--Tests/RunCMake/Ninja/SubDirPrefix/greeting.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/Ninja/SubDirPrefix/greeting.c b/Tests/RunCMake/Ninja/SubDirPrefix/greeting.c
new file mode 100644
index 0000000..ba3e55b
--- /dev/null
+++ b/Tests/RunCMake/Ninja/SubDirPrefix/greeting.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#if defined(_WIN32) && !defined(GREETING_STATIC)
+__declspec(dllexport)
+#endif
+ void greeting(void)
+{
+ printf("Hello world!\n");
+}