[qfcc] Add failing aliased type linking test

This commit is contained in:
Bill Currie 2020-03-28 23:30:05 +09:00
parent c13162e41e
commit 8ba3ab89d5
4 changed files with 23 additions and 0 deletions

View file

@ -69,6 +69,7 @@ test_progs_dat=\
swap.dat \
triangle.dat \
typedef.dat \
typelinker.dat \
vecaddr.dat \
vecexpr.dat \
vecinit.dat \
@ -471,6 +472,15 @@ typedef.run: Makefile build-run
include ./$(DEPDIR)/typedef.Qo # am--include-marker
r_depfiles_remade += ./$(DEPDIR)/typedef.Qo
typelinker_dat_SOURCES=typelinker_a.r typelinker_b.r
typelinker_obj=$(typelinker_dat_SOURCES:.r=.qfo)
typelinker.dat$(EXEEXT): $(typelinker_obj) $(QFCC_DEP)
$(QFCC) $(QCFLAGS) -o $@ $(typelinker_obj)
typelinker.run: Makefile build-run
@$(srcdir)/build-run $@
include ./$(DEPDIR)/typelinker.Qo # am--include-marker
r_depfiles_remade += ./$(DEPDIR)/typelinker.Qo
vecaddr_dat_SOURCES=vecaddr.r
vecaddr_obj=$(vecaddr_dat_SOURCES:.r=.qfo)
vecaddr.dat$(EXEEXT): $(vecaddr_obj) $(QFCC_DEP)

View file

@ -0,0 +1,3 @@
typedef struct plitem_s *plitem_t;
@extern plitem_t PL_GetPropertyList (string str);

View file

@ -0,0 +1,7 @@
#include "typelinker.h"
int main ()
{
PL_GetPropertyList ("{}");
return 0;
}

View file

@ -0,0 +1,3 @@
#include "typelinker.h"
plitem_t PL_GetPropertyList (string str) = #0;