mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
More tests.
I really need to sort out some test automation.
This commit is contained in:
parent
ee9045c377
commit
fd24524e13
3 changed files with 23 additions and 0 deletions
7
tools/qfcc/test/dead-block.r
Normal file
7
tools/qfcc/test/dead-block.r
Normal file
|
@ -0,0 +1,7 @@
|
|||
integer dead_block (integer x)
|
||||
{
|
||||
if (x)
|
||||
return 4;
|
||||
else
|
||||
return 6;
|
||||
}
|
2
tools/qfcc/test/redefined.r
Normal file
2
tools/qfcc/test/redefined.r
Normal file
|
@ -0,0 +1,2 @@
|
|||
@extern integer x;
|
||||
integer x;
|
14
tools/qfcc/test/super.r
Normal file
14
tools/qfcc/test/super.r
Normal file
|
@ -0,0 +1,14 @@
|
|||
void __obj_exec_class (obj_module_t *msg) = #0;
|
||||
|
||||
@interface Foo
|
||||
-init;
|
||||
@end
|
||||
|
||||
@interface Bar : Foo
|
||||
@end
|
||||
|
||||
@implementation Bar
|
||||
-init
|
||||
{
|
||||
return [super init];
|
||||
}
|
Loading…
Reference in a new issue