summaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-14 22:08:22 -0400
committerpommicket <pommicket@gmail.com>2025-09-14 22:08:22 -0400
commit969bf523b7039c7038b66edde5776278c27941ac (patch)
tree89a9754ff69046c813f238bff424be7cec722cdb /tests/test.h
parent0302aca4e1aa3eb495970af40a63f8bf4cf95779 (diff)
Start tests
Diffstat (limited to 'tests/test.h')
-rw-r--r--tests/test.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test.h b/tests/test.h
new file mode 100644
index 0000000..5e0b8e5
--- /dev/null
+++ b/tests/test.h
@@ -0,0 +1,17 @@
+#include <pom.h>
+
+
+#if __GNUC__ >= 6
+#define ATTRIBUTE_PRINTF(fmt, args) __attribute__ ((format(printf, fmt, args)))
+#else
+#define ATTRIBUTE_PRINTF(fmt, args)
+#endif
+
+#if _MSC_VER >= 1600
+#define PRINTF_FORMAT_STRING _Printf_format_string_
+#else
+#define PRINTF_FORMAT_STRING
+#endif
+
+void test_fail(PRINTF_FORMAT_STRING const char *, ...) ATTRIBUTE_PRINTF(1, 2);
+void test_parsing(const char *test_dir);