summaryrefslogtreecommitdiff
path: root/Tests/ConfigSources/main_debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ConfigSources/main_debug.cpp')
-rw-r--r--Tests/ConfigSources/main_debug.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/ConfigSources/main_debug.cpp b/Tests/ConfigSources/main_debug.cpp
new file mode 100644
index 000000000..9b1e68a26
--- /dev/null
+++ b/Tests/ConfigSources/main_debug.cpp
@@ -0,0 +1,13 @@
+#ifndef CFG_DEBUG
+# error "This source should only be compiled in a Debug configuration."
+#endif
+#ifdef CFG_OTHER
+# error "This source should not be compiled in a non-Debug configuration."
+#endif
+
+#include "iface.h"
+
+int main(int argc, char** argv)
+{
+ return iface_src() + iface_debug();
+}