Added getter for non address mode heuristic.
[libfirm] / ir / be / test / fehler110.c
index a879b9e..9c919f5 100644 (file)
@@ -14,8 +14,22 @@ struct A funk(void) {
        return res;
 }
 
+struct A funk2(void) {
+       struct A res;
+
+       memcpy(&res, &globa, sizeof(res));
+
+       res.a -= 20;
+       res.b -= 20;
+       res.c -= 20;
+
+       return res;
+}
+
 int main(void) {
        globa = funk();
        printf("%d %d %d\n", globa.a, globa.b, globa.c);
+       globa = funk2();
+       printf("%d %d %d\n", globa.a, globa.b, globa.c);
        return 0;
 }