mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
More tests.
This commit is contained in:
parent
23b01be214
commit
b3d5789377
3 changed files with 49 additions and 0 deletions
5
tools/qfcc/test/decl.r
Normal file
5
tools/qfcc/test/decl.r
Normal file
|
@ -0,0 +1,5 @@
|
|||
integer x;
|
||||
integer *y;
|
||||
integer *z[4];
|
||||
integer (*w)[4];
|
||||
integer (foo[3])(string);
|
1
tools/qfcc/test/field.r
Normal file
1
tools/qfcc/test/field.r
Normal file
|
@ -0,0 +1 @@
|
|||
.float *x[3];
|
43
tools/qfcc/test/syntax.r
Normal file
43
tools/qfcc/test/syntax.r
Normal file
|
@ -0,0 +1,43 @@
|
|||
int z;
|
||||
void foo (void)
|
||||
{
|
||||
int x;
|
||||
integer y = x;
|
||||
}
|
||||
|
||||
@interface something
|
||||
integer x;
|
||||
@end
|
||||
|
||||
@implementation something
|
||||
integer a;
|
||||
void doit (float how)
|
||||
{
|
||||
float why;
|
||||
}
|
||||
|
||||
-hi
|
||||
{
|
||||
}
|
||||
@end
|
||||
|
||||
@interface something(other)
|
||||
{
|
||||
integer x;
|
||||
}
|
||||
-hi: (integer) x there:(float) y
|
||||
@end
|
||||
|
||||
float hah (vod)
|
||||
{
|
||||
}
|
||||
|
||||
float ahd (void)
|
||||
{
|
||||
float x;
|
||||
}
|
||||
|
||||
@protocol whee
|
||||
-hi
|
||||
-bye;
|
||||
@end
|
Loading…
Reference in a new issue