aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/PYRBUG.c
new file mode 100644
index 000000000..c64c3f5e1
--- /dev/null
+++ b/gcc-4.9/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;
+}