#!/bin/sh
# SPDX-FileCopyrightText: 2021 John Scott <jscott@posteo.net>
# SPDX-License-Identifier: GPL-3.0-or-later
CATCH=$(sh-elf-gcc -fanalyzer -Werror=analyzer-double-free debian/tests/multiple-free.c -o "$AUTOPKGTEST_TMP"/a.out 2>&1)
if [ -e "$AUTOPKGTEST_TMP"/a.out -o "$CATCH" = "" ]
then
	echo "Something unexpected happened; CATCH = $CATCH" >&2
	exit 1
fi
