1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s 2// RUN: grep -F '@"OBJC_IVAR_$_I0._b0" = global i64 0, section "__DATA, __objc_ivar", align 8' %t 3// RUN: grep -F '@"OBJC_IVAR_$_I0._b1" = global i64 0, section "__DATA, __objc_ivar", align 8' %t 4// RUN: grep -F '@"OBJC_IVAR_$_I0._b2" = global i64 1, section "__DATA, __objc_ivar", align 8' %t 5// RUN: grep -F '@"OBJC_IVAR_$_I0._x" = global i64 2, section "__DATA, __objc_ivar", align 8' %t 6// RUN: grep -F '@"OBJC_IVAR_$_I0._b3" = global i64 4, section "__DATA, __objc_ivar", align 8' %t 7// RUN: grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_ivar", align 8' %t 8// RUN: grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_ivar", align 8' %t 9// RUN: not grep -F '@"OBJC_IVAR_$_I0." = global' %t 10 11@interface I0 { 12 unsigned _b0:4; 13 unsigned _b1:5; 14 unsigned _b2:5; 15 char _x; 16 unsigned _b3:9; 17 char _y; 18 char _b4:3; 19 char : 0; 20} 21@end 22 23@implementation I0 24@end 25