quakeforge/tools/qfcc/test/func-expr2.r
Bill Currie 5fd63b95db [qfcc] Add a new failing test
The struct alias is somehow blocking the detection of the call so the
return value gets corrupted.
2020-03-26 19:22:41 +09:00

23 lines
277 B
R

typedef struct Extent_s {
int width;
int height;
} Extent;
extern Extent get_size (void);
extern int getlen(void);
int main (void)
{
int x = get_size().width - getlen() - 1;
return x != 29;
}
Extent get_size (void)
{
return {38, 8};
}
int getlen (void)
{
return 8;
}