diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2019-02-03 15:05:52 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2019-02-03 15:05:52 +0000 |
commit | e65e062ca5e874f355f5b51f7d65635fd86cfd58 (patch) | |
tree | 145c8f089fb1e03e024cf00320da2874763d85de /test/CodeGenObjC | |
parent | 9661f6a09e991178265af143618088e8ece3ae9c (diff) |
[objc-gnustep] Fix encoding of ivar size for _Bool.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC')
-rw-r--r-- | test/CodeGenObjC/gnustep2-ivar-offset.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGenObjC/gnustep2-ivar-offset.m b/test/CodeGenObjC/gnustep2-ivar-offset.m index 432fa567de..49f24b40be 100644 --- a/test/CodeGenObjC/gnustep2-ivar-offset.m +++ b/test/CodeGenObjC/gnustep2-ivar-offset.m @@ -19,10 +19,12 @@ @package // CHECK: @__objc_ivar_offset_ANObject._intIvar.i = hidden global i32 16 int _intIvar; + _Bool boolIvar; } @end @implementation ANObject @end // Check that the ivar metadata contains 3 entries of the correct form and correctly sets the size. -// CHECK: @.objc_ivar_list = private global { i32, i64, [3 x { i8*, i8*, i32*, i32, i32 }] } { i32 3, i64 32, -// Check that we're emitting the extended type encoding for the string ivar. +// CHECK: @.objc_ivar_list = private global { i32, i64, [4 x { i8*, i8*, i32*, i32, i32 }] } { i32 4, i64 32, +// Check that we emit 1 as the size of _Bool, not 0. +// CHECK-SAME: @__objc_ivar_offset_ANObject.boolIvar.B, i32 1, i32 4 |