mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Yet more tests.
This commit is contained in:
parent
7314b944d5
commit
fbea276ede
4 changed files with 32 additions and 0 deletions
7
tools/qfcc/test/linkdef1.r
Normal file
7
tools/qfcc/test/linkdef1.r
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
@extern integer foo (void);
|
||||||
|
@extern integer baz (void);
|
||||||
|
|
||||||
|
integer bar (void)
|
||||||
|
{
|
||||||
|
return foo () + baz ();
|
||||||
|
}
|
9
tools/qfcc/test/linkdef2.r
Normal file
9
tools/qfcc/test/linkdef2.r
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
@extern integer bar (void);
|
||||||
|
@extern integer baz (void);
|
||||||
|
id obj;
|
||||||
|
|
||||||
|
integer foo (void)
|
||||||
|
{
|
||||||
|
[obj message];
|
||||||
|
return bar () + baz ();;
|
||||||
|
}
|
10
tools/qfcc/test/linkdef3.r
Normal file
10
tools/qfcc/test/linkdef3.r
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
@extern integer foo (void);
|
||||||
|
@extern integer bar (void);
|
||||||
|
|
||||||
|
void __obj_exec_class (obj_module_t *msg) = #0;
|
||||||
|
id (id receiver, SEL op, ...) obj_msgSend = #0;
|
||||||
|
|
||||||
|
integer baz (void)
|
||||||
|
{
|
||||||
|
return foo () + bar ();
|
||||||
|
}
|
6
tools/qfcc/test/test-linkdef
Executable file
6
tools/qfcc/test/test-linkdef
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#! /bin/sh
|
||||||
|
./qfcc -gc linkdef1.r
|
||||||
|
./qfcc -gc linkdef2.r
|
||||||
|
./qfcc -gc linkdef3.r
|
||||||
|
./qfcc -rg -o linkdef.qfo linkdef1.qfo linkdef2.qfo linkdef3.qfo
|
||||||
|
./qfcc -g -o linkdef.dat linkdef1.qfo linkdef2.qfo linkdef3.qfo
|
Loading…
Reference in a new issue