aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-12-04 03:51:14 +0100
committerMichael Matz <matz@suse.de>2017-12-04 03:51:14 +0100
commitcc6cb7f0e294f0c98c4970c7ec993709fc2daa1a (patch)
treed780f1752a932f06acec05bd1cbdce5a0f48ee04 /tests/Makefile
parent529b44c0d53955309e79de3da677973922f48425 (diff)
downloadtinycc-cc6cb7f0e294f0c98c4970c7ec993709fc2daa1a.tar.gz
tinycc-cc6cb7f0e294f0c98c4970c7ec993709fc2daa1a.tar.bz2
Fix another corner case with C/asm symtable
See testcase (from grischka). If the asm has no .globl, but there's a (non-static) C definition the symbol should be exported, even if the first reference comes from asm.
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 61b585e..f06f39c 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -235,9 +235,16 @@ vla_test-run: vla_test$(EXESUF)
asm-c-connect$(EXESUF): asm-c-connect-1.c asm-c-connect-2.c
$(TCC) -o $@ $^
-asm-c-connect-test: asm-c-connect$(EXESUF)
+asm-c-connect-%.o: asm-c-connect-%.c
+ $(TCC) -c -o $@ $<
+
+asm-c-connect-sep$(EXESUF): asm-c-connect-1.o asm-c-connect-2.o
+ $(TCC) -o $@ $^
+
+asm-c-connect-test: asm-c-connect$(EXESUF) asm-c-connect-sep$(EXESUF)
@echo ------------ $@ ------------
./asm-c-connect$(EXESUF)
+ ./asm-c-connect-sep$(EXESUF)
cross-test :
@echo ------------ $@ ------------