| 1 |
typedef const void *CFTypeRef; |
| 2 |
|
| 3 |
void test(id x) { |
| 4 |
(__bridge CFTypeRef)x; |
| 5 |
} |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
// RUN: c-index-test -code-completion-at=%s:4:4 %s -fobjc-arc -fobjc-nonfragile-abi | FileCheck -check-prefix=CHECK-CC1 %s |
| 10 |
// CHECK-CC1: macro definition:{TypedText __autoreleasing} (70) |
| 11 |
// CHECK-CC1: NotImplemented:{TypedText __bridge}{HorizontalSpace }{Placeholder type}{RightParen )}{Placeholder expression} (40) |
| 12 |
// CHECK-CC1: NotImplemented:{TypedText __bridge_retained}{HorizontalSpace }{Placeholder CF type}{RightParen )}{Placeholder expression} (40) |
| 13 |
// CHECK-CC1: NotImplemented:{TypedText __bridge_transfer}{HorizontalSpace }{Placeholder Objective-C type}{RightParen )}{Placeholder expression} (40) |
| 14 |
// CHECK-CC1: macro definition:{TypedText __strong} (70) |
| 15 |
// CHECK-CC1: macro definition:{TypedText __unsafe_unretained} (70) |
| 16 |
// CHECK-CC1: macro definition:{TypedText __weak} (70) |