summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-lzma.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/feature/test-lzma.c')
-rw-r--r--tools/build/feature/test-lzma.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/build/feature/test-lzma.c b/tools/build/feature/test-lzma.c
new file mode 100644
index 000000000000..95adc8ced3dd
--- /dev/null
+++ b/tools/build/feature/test-lzma.c
@@ -0,0 +1,10 @@
+#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;
+}