summaryrefslogtreecommitdiff
path: root/tests/test_foobar.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_foobar.c')
-rw-r--r--tests/test_foobar.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_foobar.c b/tests/test_foobar.c
new file mode 100644
index 0000000..bcde749
--- /dev/null
+++ b/tests/test_foobar.c
@@ -0,0 +1,15 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#undef NDEBUG
+
+#include <assert.h>
+
+#include "../src/common.h"
+
+int main(void)
+{
+ assert(foobar_internal(2, 3) == 5);
+ return 0;
+}