Home | History | Annotate | Download | only in PCH
      1 // Test objc_boxable update record
      2 
      3 // RUN: %clang_cc1 -x objective-c %S/objc_boxable_record.h -emit-pch -o %t1
      4 // RUN: %clang_cc1 -x objective-c %S/objc_boxable_record_attr.h -include-pch %t1 -emit-pch -o %t2
      5 // RUN: %clang_cc1 %s -include-pch %t2 -fsyntax-only -verify
      6 
      7 // expected-no-diagnostics 
      8 
      9 __attribute__((objc_root_class))
     10 @interface NSValue
     11 + (NSValue *)valueWithBytes:(const void *)bytes objCType:(const char *)type;
     12 @end
     13 
     14 void doStuff(struct boxable b) {
     15   id v = @(b);
     16 }
     17 
     18