From 8646e6f693fd935c6cb81e776a6c92a3fd093a33 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 23 Aug 2025 17:41:23 +0900 Subject: feat: output executable using gcc --- tests/098.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/098.sh (limited to 'tests/098.sh') diff --git a/tests/098.sh b/tests/098.sh new file mode 100644 index 0000000..33c4f17 --- /dev/null +++ b/tests/098.sh @@ -0,0 +1,16 @@ +cat > foo.c <<'EOF' +int main() {} +EOF + +"$ducc" -o bar.s foo.c +if [[ $? -ne 0 ]]; then + exit 1 +fi +gcc -o a.out bar.s +./a.out "$@" +exit_code=$? + +if [[ $exit_code -ne 0 ]]; then + echo "invalid exit code: $exit_code" >&2 + exit 1 +fi -- cgit v1.2.3-70-g09d2