xref: /llvm-project/clang/test/CodeGenObjC/ivars.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s
2// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s
3// RUN: %clang_cc1 -fobjc-gc -emit-llvm -o - %s
4
5@interface ITF {
6@public
7  unsigned field :1 ;
8  _Bool boolfield :1 ;
9}
10@end
11
12void foo(ITF *P) {
13  P->boolfield = 1;
14}
15
16@interface R {
17  struct {
18    union {
19      int x;
20      char c;
21    };
22  } _union;
23}
24@end
25
26@implementation R
27@end
28