[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:
Bill Currie 2020-03-26 19:22:41 +09:00
parent adb7b018d9
commit 5fd63b95db

View 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;
}