summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/ObjectLibrary/requires.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/requires.c')
-rw-r--r--Tests/RunCMake/ObjectLibrary/requires.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/requires.c b/Tests/RunCMake/ObjectLibrary/requires.c
new file mode 100644
index 000000000..685632b3d
--- /dev/null
+++ b/Tests/RunCMake/ObjectLibrary/requires.c
@@ -0,0 +1,8 @@
+#ifdef REQUIRED
+int required()
+{
+ return 0;
+}
+#else
+# error "REQUIRED not defined"
+#endif