diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-11 21:12:36 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-11 21:12:36 +0000 |
commit | acee1c9dbe180c6493d1bcda6a0a7ee4018ed7b1 (patch) | |
tree | 0396ab34e823543102b76a3fe67161a6d8b0040e /test | |
parent | 994d73f8473cb2cd3ce2f69c9575c95015be788a (diff) |
modern objective-c translator. Fixes a translation bug when
first ivar in the list is a bitfield.
// rdar://11229770
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Rewriter/rewrite-modern-ivars-2.mm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/Rewriter/rewrite-modern-ivars-2.mm b/test/Rewriter/rewrite-modern-ivars-2.mm index 643d4518e4..0faed5c55c 100644 --- a/test/Rewriter/rewrite-modern-ivars-2.mm +++ b/test/Rewriter/rewrite-modern-ivars-2.mm @@ -71,3 +71,31 @@ typedef unsigned int FSCatalogInfoBitmap; @implementation NSFileLocationComponent @end +// rdar://11229770 + +@interface Foo { + int bar:26; +} +@end + +@implementation Foo +@end + +@interface Foo1 { + int bar:26; + int bar2:4; +} +@end + +@implementation Foo1 +@end + +@interface Foo3 { + int foo; + int bar:26; +} +@end + +@implementation Foo3 +@end + |