aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/Makefile
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-07-31 05:43:17 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:09 +0100
commited7d54651d2ef33dd6f644f23ba2fa64706e84db (patch)
tree6e9f026ed352aa684be2b6554be698cb2112a4c8 /tests/tests2/Makefile
parent968bccdd2aae0c737c3e4c7ba0fc7e8900d1055a (diff)
downloadtinycc-ed7d54651d2ef33dd6f644f23ba2fa64706e84db.tar.gz
tinycc-ed7d54651d2ef33dd6f644f23ba2fa64706e84db.tar.bz2
struct-init: Implement initializing subaggregates
E.g. "struct { struct S s; int a;} = { others, 42 };" if 'others' is also a 'struct S'. Also when the value is a compound literal. See added testcases.
Diffstat (limited to 'tests/tests2/Makefile')
-rw-r--r--tests/tests2/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile
index d8556ad..50cff85 100644
--- a/tests/tests2/Makefile
+++ b/tests/tests2/Makefile
@@ -54,7 +54,7 @@ all test: $(filter-out $(SKIP),$(TESTS))
# automatically generate .expect files with gcc:
%.expect :
- (gcc $*.c -o a.exe && ./a.exe $(ARGS)) >$*.expect 2>&1; rm -f a.exe
+ (gcc -w $*.c -o a.exe && ./a.exe $(ARGS)) >$*.expect 2>&1; rm -f a.exe
# tell make not to delete
.PRECIOUS: %.expect