aboutsummaryrefslogtreecommitdiff
path: root/tests/abi.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/abi.c')
-rw-r--r--tests/abi.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/abi.c b/tests/abi.c
new file mode 100644
index 0000000..1601e0a
--- /dev/null
+++ b/tests/abi.c
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/*
+ * abi.c
+ *
+ * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
+ */
+#include "config.h"
+
+#include "sqfs/compressor.h"
+
+#include <assert.h>
+#include <stdlib.h>
+
+int main(void)
+{
+ sqfs_compressor_config_t cfg;
+
+ assert(sizeof(cfg.opt.gzip) == sizeof(cfg.opt));
+ assert(sizeof(cfg.opt.zstd) == sizeof(cfg.opt));
+ assert(sizeof(cfg.opt.lzo) == sizeof(cfg.opt));
+ assert(sizeof(cfg.opt.xz) == sizeof(cfg.opt));
+ assert(sizeof(cfg.opt.padd0) == sizeof(cfg.opt));
+
+ return EXIT_SUCCESS;
+}