Yet more tests.

This commit is contained in:
Bill Currie 2011-03-05 17:21:19 +09:00
parent 7314b944d5
commit fbea276ede
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,7 @@
@extern integer foo (void);
@extern integer baz (void);
integer bar (void)
{
return foo () + baz ();
}

View file

@ -0,0 +1,9 @@
@extern integer bar (void);
@extern integer baz (void);
id obj;
integer foo (void)
{
[obj message];
return bar () + baz ();;
}

View 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
View 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