Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/objc_boxable.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
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 |