mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
[qfcc] Add failing aliased type linking test
This commit is contained in:
parent
c13162e41e
commit
8ba3ab89d5
4 changed files with 23 additions and 0 deletions
|
@ -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)
|
||||
|
|
3
tools/qfcc/test/typelinker.h
Normal file
3
tools/qfcc/test/typelinker.h
Normal file
|
@ -0,0 +1,3 @@
|
|||
typedef struct plitem_s *plitem_t;
|
||||
|
||||
@extern plitem_t PL_GetPropertyList (string str);
|
7
tools/qfcc/test/typelinker_a.r
Normal file
7
tools/qfcc/test/typelinker_a.r
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include "typelinker.h"
|
||||
|
||||
int main ()
|
||||
{
|
||||
PL_GetPropertyList ("{}");
|
||||
return 0;
|
||||
}
|
3
tools/qfcc/test/typelinker_b.r
Normal file
3
tools/qfcc/test/typelinker_b.r
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "typelinker.h"
|
||||
|
||||
plitem_t PL_GetPropertyList (string str) = #0;
|
Loading…
Reference in a new issue