From d418be31e6d1362cdbaa4b980207817172f0fcf2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 11 Mar 2020 20:55:21 +0900 Subject: [PATCH] [qfcc] Tweak ivar test to check old bug It turns out that assigning nil to an ivar struct does not work (should, of course). --- tools/qfcc/test/ivar-struct-return.r | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/test/ivar-struct-return.r b/tools/qfcc/test/ivar-struct-return.r index 5e212a5ba..a3883b81c 100644 --- a/tools/qfcc/test/ivar-struct-return.r +++ b/tools/qfcc/test/ivar-struct-return.r @@ -17,6 +17,7 @@ typedef struct Point Point; @implementation Object -(Point) origin { + origin = nil; return origin; } @end