summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-lzma.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/build/feature/test-lzma.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/build/feature/test-lzma.c b/tools/build/feature/test-lzma.c
new file mode 100644
index 000000000..78682bb01
--- /dev/null
+++ b/tools/build/feature/test-lzma.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <lzma.h>
+
+int main(void)
+{
+ lzma_stream strm = LZMA_STREAM_INIT;
+ int ret;
+
+ ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED);
+ return ret ? -1 : 0;
+}