diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-21 01:18:01 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-21 01:18:01 +0000 |
commit | 51a1d9543d65c9864793911c3200a506562f4161 (patch) | |
tree | d919ac2a9a5763b0d68fd84f2de52af8f0172fc9 | |
parent | 75b163f4c832696edf4d66d8ac1ec0ed5ea59e17 (diff) |
Kill ASTContext::[gs]etFieldForDecl, instead we just lookup things
when we need them -- which is exactly what some code was already
doing!
- No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69646 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenObjC/bitfield-ivar-offsets.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenObjC/bitfield-ivar-offsets.m b/test/CodeGenObjC/bitfield-ivar-offsets.m index 23a09a3a15..c97b54f5db 100644 --- a/test/CodeGenObjC/bitfield-ivar-offsets.m +++ b/test/CodeGenObjC/bitfield-ivar-offsets.m @@ -8,6 +8,9 @@ // RUN: grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_const", align 8' %t && // RUN: grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_const", align 8' %t && // RUN: grep -F '@"OBJC_IVAR_$_I0." = global' %t | count 0 && +// RUN: grep -F '@"OBJC_IVAR_$_I1._c0" = global i64 8, section "__DATA, __objc_const", align 8' %t && +// RUN: grep -F '@"OBJC_IVAR_$_I1._c1" = global i64 9, section "__DATA, __objc_const", align 8' %t && +// RUN: grep -F '@"OBJC_IVAR_$_I1._c2" = global i64 9, section "__DATA, __objc_const", align 8' %t && // RUN: true @interface I0 { @@ -22,5 +25,15 @@ } @end +@interface I1 : I0 { + char _c0:4; + char _c1:5; + char _c2:2; +} +@end + @implementation I0 @end + +@implementation I1 +@end |