From 7bf323843ee2f59bcbdaa8e5dd7b060a2df4ea4d Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 31 Jul 2016 06:18:45 +0200 Subject: struct-init: Cleanup Remove dead code and variables. Properly check for unions when skipping fields in initializers. Make tests2/*.expect depend on the .c files so they are automatically rebuilt when the latter change. --- tests/tests2/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tests2/Makefile') diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index 50cff85..2434215 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -53,7 +53,7 @@ all test: $(filter-out $(SKIP),$(TESTS)) @diff -Nbu $(SRC)/$*.expect $*.output && rm -f $*.output # automatically generate .expect files with gcc: -%.expect : +%.expect : %.c (gcc -w $*.c -o a.exe && ./a.exe $(ARGS)) >$*.expect 2>&1; rm -f a.exe # tell make not to delete -- cgit v1.3.1