summaryrefslogtreecommitdiffstats
path: root/test/PCH/objc_boxable.m
blob: 2cd9c23d54172b79580e4e1c0b659dc2d30c8306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Test objc_boxable update record

// RUN: %clang_cc1 -x objective-c %S/objc_boxable_record.h -emit-pch -o %t1
// RUN: %clang_cc1 -x objective-c %S/objc_boxable_record_attr.h -include-pch %t1 -emit-pch -o %t2
// RUN: %clang_cc1 %s -include-pch %t2 -fsyntax-only -verify

// expected-no-diagnostics 

__attribute__((objc_root_class))
@interface NSValue
+ (NSValue *)valueWithBytes:(const void *)bytes objCType:(const char *)type;
@end

void doStuff(struct boxable b) {
  id v = @(b);
}