aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/tests/glibc/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/tests/glibc/error.c')
-rw-r--r--lib/mlibc/tests/glibc/error.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mlibc/tests/glibc/error.c b/lib/mlibc/tests/glibc/error.c
new file mode 100644
index 0000000..2ae752a
--- /dev/null
+++ b/lib/mlibc/tests/glibc/error.c
@@ -0,0 +1,6 @@
+#include <errno.h>
+#include <error.h>
+
+int main() {
+ error(0, EINVAL, "test: %s", "error");
+}