summaryrefslogtreecommitdiffstats
path: root/testing/015_cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/015_cond.c')
-rw-r--r--testing/015_cond.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/015_cond.c b/testing/015_cond.c
new file mode 100644
index 0000000..ab3044c
--- /dev/null
+++ b/testing/015_cond.c
@@ -0,0 +1,30 @@
+// objective: test the \cond command
+// check: 015__cond_8c.xml
+// config: ENABLED_SECTIONS = COND_ENABLED
+
+/** \file
+ * Text \a argument more text.
+ */
+
+/// \cond
+
+/** A function */
+void func();
+
+/** A macro */
+#define MACRO 42
+
+/// \endcond
+
+/// \cond COND_ENABLED
+void cond_enabled()
+{
+}
+/// \endcond
+
+/** \cond COND_DISABLED */
+void cond_disabled()
+{
+}
+/** \endcond */
+