From f2fc8861fe241683ccc4bf026fbeeefe6ba1e04e Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 23 Jul 2025 18:35:18 +0300 Subject: check const types with static_assert --- tests/xfail/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/xfail/Makefile (limited to 'tests/xfail/Makefile') diff --git a/tests/xfail/Makefile b/tests/xfail/Makefile new file mode 100644 index 0000000..b38feae --- /dev/null +++ b/tests/xfail/Makefile @@ -0,0 +1,15 @@ +FILES != echo *.c +TARGETS := $(FILES:%.c=build/%) + +all: $(TARGETS) + +build/%: %.c ../../ngc1 + @mkdir -p build + @gcc -E $< -o $@.i + @(../../ngc1 $@.i > $@.c 2>/dev/null && gcc $@.c -o $@ 2>/dev/null) \ + && echo "FAIL $@" \ + || echo "XFAIL $@" + +.PHONY: clean +clean: + $(RM) -rf build -- cgit v1.2.3