Home | History | Annotate | Download | only in CodeGenObjC
      1 // RUN: %clang_cc1 -emit-llvm  -triple x86_64-apple-darwin -x objective-c %s -o - | FileCheck %s
      2 // rdar://10840980
      3 
      4 @interface A {
      5         struct {
      6                 unsigned char a : 1;
      7                 unsigned char b : 1;
      8                 unsigned char c : 1;
      9         } _flags;
     10 }
     11 
     12 @end
     13 
     14 @implementation A
     15 
     16 - (id)init {
     17         _flags.a = 1;
     18         _flags.b = 1;
     19         _flags.c = 1;
     20 
     21         return self;
     22 }
     23 
     24 @end
     25 
     26 // CHECK: [[T1:%.*]] = load i64, i64* @"OBJC_IVAR_$_A._flags", align 8, !invariant.load ![[MD_NUM:[0-9]+]]
     27 // CHECK: [[T2:%.*]] = load i64, i64* @"OBJC_IVAR_$_A._flags", align 8, !invariant.load ![[MD_NUM]]
     28 // CHECK: [[T3:%.*]] = load i64, i64* @"OBJC_IVAR_$_A._flags", align 8, !invariant.load ![[MD_NUM]]
     29 //
     30