Home | History | Annotate | Download | only in CodeGenObjC
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -emit-llvm -o - %s
      2 // RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -o - %s
      3 // RUN: %clang_cc1 -fobjc-gc -emit-llvm -o - %s
      4 
      5 // rdar://6800926
      6 @interface ITF {
      7 @public
      8   unsigned field :1 ;
      9   _Bool boolfield :1 ;
     10 }
     11 @end
     12 
     13 void foo(ITF *P) {
     14   P->boolfield = 1;
     15 }
     16 
     17 // rdar://8368320
     18 @interface R {
     19   struct {
     20     union {
     21       int x;
     22       char c;
     23     };
     24   } _union;
     25 }
     26 @end
     27 
     28 @implementation R
     29 @end
     30