llvm-project/clang/test/CodeGenObjC/ivars.m

15 lines
266 B
Objective-C

// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o - %s
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o - %s
// rdar://6800926
@interface ITF {
@public
unsigned field :1 ;
_Bool boolfield :1 ;
}
@end
void foo(ITF *P) {
P->boolfield = 1;
}