18 lines · plain
1// Test objc_boxable update record2 3// RUN: %clang_cc1 -x objective-c %S/objc_boxable_record.h -emit-pch -o %t14// RUN: %clang_cc1 -x objective-c %S/objc_boxable_record_attr.h -include-pch %t1 -emit-pch -o %t25// RUN: %clang_cc1 %s -include-pch %t2 -fsyntax-only -verify6 7// expected-no-diagnostics 8 9__attribute__((objc_root_class))10@interface NSValue11+ (NSValue *)valueWithBytes:(const void *)bytes objCType:(const char *)type;12@end13 14void doStuff(struct boxable b) {15 id v = @(b);16}17 18