More tests.

This commit is contained in:
Bill Currie 2011-02-14 15:46:06 +09:00
parent 23b01be214
commit b3d5789377
3 changed files with 49 additions and 0 deletions

5
tools/qfcc/test/decl.r Normal file
View 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
View file

@ -0,0 +1 @@
.float *x[3];

43
tools/qfcc/test/syntax.r Normal file
View 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