diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c b/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c new file mode 100644 index 000000000..c64c3f5e1 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c @@ -0,0 +1,17 @@ +typedef struct +{ + int v; + int h; +} Point; + +typedef struct +{ + int top, left, bottom, right; +} Rect; + +int +x_PtInRect (Point pt, Rect *r) +{ + return pt.v >= r->top && pt.v < r->bottom + && pt.h >= r->left && pt.h < r->right; +} |