mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[qfcc] Add a new failing test
The struct alias is somehow blocking the detection of the call so the return value gets corrupted.
This commit is contained in:
parent
adb7b018d9
commit
5fd63b95db
1 changed files with 23 additions and 0 deletions
23
tools/qfcc/test/func-expr2.r
Normal file
23
tools/qfcc/test/func-expr2.r
Normal file
|
@ -0,0 +1,23 @@
|
|||
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;
|
||||
}
|
Loading…
Reference in a new issue